From d7b24990ec5bd1bf4efb7f02c613e0235dfab4a8 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 16:59:46 +0000 Subject: 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 --- src/modes/cmode_k.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3