summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-28 17:25:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-28 17:25:07 +0000
commita06b94acc1ed68c92b8b36275ef83623d894e4a2 (patch)
tree15033c7cfda179caae537b39fe306ede607ba30c /src
parentf6573f487ad072de7214031d71802a139145f3de (diff)
Fix for empty 005 lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6139 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp9
1 files changed, 6 insertions, 3 deletions
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)