From 818671feed02e10440ce34bd921f2ab3dde696f1 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 17:19:01 +0000 Subject: 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 --- src/mode.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- cgit v1.2.3