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