diff options
| author | 2026-03-13 22:49:48 +0000 | |
|---|---|---|
| committer | 2026-03-14 02:16:20 +0000 | |
| commit | a04212eee0716a01f5f75589d12f7578f6695270 (patch) | |
| tree | b8f6820ad17d53eea8956b547f4c96954022c59b /modules/alias.cpp | |
| parent | Clean up the casemapping checking and comparison code. (diff) | |
Rewrite tokenstream and move to stringutils.
Diffstat (limited to 'modules/alias.cpp')
| -rw-r--r-- | modules/alias.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/modules/alias.cpp b/modules/alias.cpp index b992c6b9b..75dbc8c87 100644 --- a/modules/alias.cpp +++ b/modules/alias.cpp @@ -26,6 +26,7 @@ #include "inspircd.h" +#include "stringutils.h" /** An alias definition */ @@ -377,19 +378,16 @@ public: result.push_back(c); } - irc::tokenstream ss(result); - CommandBase::Params pars; + MessageTokenizer tokenizer(result); + std::string command; - std::string token; + tokenizer.GetMiddle(command); - ss.GetMiddle(command); - while (ss.GetTrailing(token)) - { - pars.push_back(token); - } + CommandBase::Params parameters; + tokenizer.GetRemainingTrailing(parameters); active = true; - ServerInstance->Parser.ProcessCommand(user, command, pars); + ServerInstance->Parser.ProcessCommand(user, command, parameters); active = false; } |
