From de452c57b387345da9a9aa6f96ea2dbe3a6ebd4c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 Aug 2006 19:54:30 +0000 Subject: And make it work here git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5085 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 6183adfd3..4c1a22990 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -410,7 +410,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool parameter = parameters[parameter_counter++]; /* Yerk, invalid! */ - if ((parameter.rfind(':') == parameter.begin()) || (parameter.rfind(' ') != std::string::npos)) + if ((parameter.rfind(':') == 0) || (parameter.rfind(' ') != std::string::npos)) parameter = ""; } else -- cgit v1.2.3