diff options
-rw-r--r-- | src/mode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 0d0828360..05d35c103 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -566,7 +566,8 @@ void ModeParser::Process(char **parameters, int pcnt, userrec *user) if ((modehandlers[handler_id]->GetNumParams(adding)) && (parameter != "")) { - parameter_list >> " " >> parameter; + parameter = " " + parameter; + parameter_list >> parameter; } for (std::vector<ModeWatcher*>::iterator watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++) |