]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix for empty 005 lines
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 28 Dec 2006 17:25:07 +0000 (17:25 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 28 Dec 2006 17:25:07 +0000 (17:25 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6139 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp

index 8c4113493d58074e692be0c40ca547fdb98c3a01..a8b76b182472bb4976d5fa7c571e2c9bbb8d20f4 100644 (file)
@@ -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)