diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 14dd39b33..ebf18b1cf 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -483,8 +483,8 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool parameter = parameters[parameter_counter++]; /* Yerk, invalid! */ - if ((parameter.find(':') == 0) || (parameter.rfind(' ') != std::string::npos)) - parameter = ""; + if ((parameter.find(':', 0, 1) == 0) || (parameter.rfind(' ') != std::string::npos)) + parameter.clear(); } else { |