]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Change the SQLutils and SQL providers to also use interfaces for proper unload order...
[user/henk/code/inspircd.git] / 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)