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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user