summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_alias.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 1c44e2e2f..e0e4e6477 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -74,8 +74,6 @@ class ModuleAlias : public Module
: Module(Me)
{
ReadAliases();
- pars.resize(MAXPARAMETERS);
-
Me->Modules->Attach(I_OnPreCommand, this);
Me->Modules->Attach(I_OnRehash, this);
@@ -247,7 +245,9 @@ class ModuleAlias : public Module
SearchAndReplace(newline, "\r", "$");
irc::tokenstream ss(newline);
+ pars.clear();
std::string command, token;
+
ss.GetToken(command);
while (ss.GetToken(token) && (pars.size() <= MAXPARAMETERS))
{