summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
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