1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 19:56:39 +02:00

Add an option to sepstream to allow it to return empty tokens if multiple separators are found in a row

This commit is contained in:
Adam
2013-05-05 01:18:16 -04:00
parent 10b5b00db4
commit e91de41278
4 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -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);