From b08af9801b47edbb4684bac691cb1e8d5eb9e3b8 Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Sun, 3 Apr 2011 11:27:33 -0400 Subject: Rewrite sepstream logic, add an option to suppress empty items, and add test cases --- src/command_parse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 92682fed5..5f4890cbe 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -67,8 +67,8 @@ int CommandParser::LoopCall(User* user, Command* CommandObj, const std::vector= 0 ? parameters[extra] : ""); + irc::commasepstream items1(parameters[splithere], false); + irc::commasepstream items2(extra >= 0 ? parameters[extra] : "", false); std::string extrastuff; std::string item; unsigned int max = 0; -- cgit v1.3.1-10-gc9f91