diff options
author | Adam <Adam@anope.org> | 2013-05-05 01:18:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-05 02:00:33 -0400 |
commit | e91de41278ff5993973999e4e5095360612ec056 (patch) | |
tree | 9945adf89c708406b49b1e4651232c5994c0215a /src/users.cpp | |
parent | 10b5b00db4f6f38f33b122f1a2cbcb788fc7c0eb (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/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 26d5b31c5..61d27deb1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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")))) |