From 565173aedd3926e63ae4b782466ce1e21c22ab4a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 May 2008 22:34:45 +0000 Subject: Fix broken m_alias, cant preallocate and then push_back, because then its maxparams + size :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9658 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 4 ++-- 1 file 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)) { -- cgit v1.2.3