aboutsummaryrefslogtreecommitdiff
path: root/modules/alias.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-13 22:49:48 +0000
committerGravatar Sadie Powell2026-03-14 02:16:20 +0000
commita04212eee0716a01f5f75589d12f7578f6695270 (patch)
treeb8f6820ad17d53eea8956b547f4c96954022c59b /modules/alias.cpp
parentClean 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.cpp16
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;
}