1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 16: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
@@ -278,7 +278,7 @@ void User::SendMessage(const BotInfo *source, const Anope::string &msg)
* - The user is not registered and NSDefMsg is enabled
* - The user is registered and has set /ns set msg on
*/
sepstream sep(translated_message, '\n');
sepstream sep(translated_message, '\n', true);
for (Anope::string tok; sep.GetToken(tok);)
{
if (Config->UsePrivmsg && ((!this->nc && Config->DefPrivmsg) || (this->nc && this->nc->HasExt("MSG"))))