summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 17:19:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 17:19:01 +0000
commit818671feed02e10440ce34bd921f2ab3dde696f1 (patch)
treef92616731ea1b5ff9e85e895ce787ad6791874a7 /src
parentd534ad9efb69557d81125b9646629d74a29e7175 (diff)
Things are so much easier here (thanks to sts for the bug)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4963 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index c865ebe2f..f3cf54e6a 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -395,6 +395,10 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
if (parameter_counter < pcnt)
{
parameter = parameters[parameter_counter++];
+
+ /* Yerk, invalid! */
+ if ((parameter.rfind(':') || (parameter.rfind(' '))))
+ parameter = "";
}
else
{