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