diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 12:17:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 12:17:15 +0000 |
commit | bc0f60962214a0a5d306519b1b6e1f9b5edf205f (patch) | |
tree | a3d78ff3ba86502a1e5365acaee2e986075655d7 /src | |
parent | 91f53565886e008ca4bb1ff9ee0b409f4d3bad13 (diff) |
INSERT foot INTO mouth WHERE user='Brain'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3861 e03df62e-2008-0410-955e-edbf42e46eb7
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++) |