diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-07 01:29:45 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-07 01:29:45 +0000 |
commit | 96a4a1d41e42dba806c2e9954e148ed838262511 (patch) | |
tree | 3d1b2679437012f10133182d0aa8a8d9b7479350 /src/command_parse.cpp | |
parent | 526f5a4a02882b19056fe755dff1f64b764ff313 (diff) |
Include explicit parameter list in ProtocolInterface::SendMode
Also leave the strings split into deque, there's no need to pack it into a
string just to unpack it during the translate.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11181 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index d0b114816..92428fd32 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -609,19 +609,20 @@ void CommandParser::SetupCommandTable() this->CreateCommand(new CommandReload(ServerInstance)); } -int CommandParser::TranslateUIDs(const std::vector<TranslateType> to, const std::string &source, std::string &dest) +int CommandParser::TranslateUIDs(const std::deque<TranslateType> to, const std::deque<std::string> &source, std::string &dest) { - irc::spacesepstream items(source); - std::vector<TranslateType>::const_iterator types = to.begin(); + std::deque<std::string>::const_iterator items = source.begin(); + std::deque<TranslateType>::const_iterator types = to.begin(); User* user = NULL; - std::string item; int translations = 0; dest.clear(); - while (items.GetToken(item)) + while (items != source.end() && types != to.end()) { TranslateType t = *types; + std::string item = *items; types++; + items++; switch (t) { |