From a06b94acc1ed68c92b8b36275ef83623d894e4a2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 28 Dec 2006 17:25:07 +0000 Subject: Fix for empty 005 lines git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6139 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/configreader.cpp b/src/configreader.cpp index 8c4113493..a8b76b182 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -131,9 +131,12 @@ void ServerConfig::Update005() token_counter = 0; } } - char buf[MAXBUF]; - snprintf(buf, MAXBUF, "%s:are supported by this server", line5.c_str()); - isupport.push_back(buf); + if (!line5.empty()) + { + char buf[MAXBUF]; + snprintf(buf, MAXBUF, "%s:are supported by this server", line5.c_str()); + isupport.push_back(buf); + } } void ServerConfig::Send005(userrec* user) -- cgit v1.2.3