summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 16:59:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 16:59:46 +0000
commitd7b24990ec5bd1bf4efb7f02c613e0235dfab4a8 (patch)
tree70af73296415aa826e5c1c20e3193afc2fe9c711
parent592f23e7053cb81b076057918c3459a3ba0f5317 (diff)
stskeeps trying to get his name all over our commit log :p (thanks for the bugreport)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4960 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modes/cmode_k.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes/cmode_k.cpp b/src/modes/cmode_k.cpp
index 751b993d3..4f95f3ad1 100644
--- a/src/modes/cmode_k.cpp
+++ b/src/modes/cmode_k.cpp
@@ -39,7 +39,7 @@ ModeAction ModeChannelKey::OnModeChange(userrec* source, userrec* dest, chanrec*
else if ((!channel->modes[CM_KEY]) || ((adding) && (!IS_LOCAL(source))))
{
/* Key isnt currently set */
- if (parameter.length())
+ if ((parameter.length()) && (parameter.rfind(' ') == std::string::npos))
{
strlcpy(channel->key,parameter.c_str(),32);
channel->modes[CM_KEY] = adding;