From bc0f60962214a0a5d306519b1b6e1f9b5edf205f Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Apr 2006 12:17:15 +0000 Subject: INSERT foot INTO mouth WHERE user='Brain' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3861 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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::iterator watchers = modewatchers[handler_id].begin(); watchers != modewatchers[handler_id].end(); watchers++) -- cgit v1.2.3