summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 01:18:16 -0400
committerAdam <Adam@anope.org>2013-05-05 02:00:33 -0400
commite91de41278ff5993973999e4e5095360612ec056 (patch)
tree9945adf89c708406b49b1e4651232c5994c0215a /src/command.cpp
parent10b5b00db4f6f38f33b122f1a2cbcb788fc7c0eb (diff)
Add an option to sepstream to allow it to return empty tokens if multiple separators are found in a row
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp
index db4bb9996..b7289b848 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -112,7 +112,7 @@ void CommandSource::Reply(const Anope::string &message)
{
const char *translated_message = Language::Translate(this->nc, message.c_str());
- sepstream sep(translated_message, '\n');
+ sepstream sep(translated_message, '\n', true);
Anope::string tok;
while (sep.GetToken(tok))
this->reply->SendMessage(this->service, tok);