diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-06 22:34:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-06 22:34:45 +0000 |
commit | 565173aedd3926e63ae4b782466ce1e21c22ab4a (patch) | |
tree | d2af69d7dbd293348f60e51b4a4cb8ab4816d13c | |
parent | d98358886d190079bbc55b72eb67d4d217d9c687 (diff) |
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
-rw-r--r-- | src/modules/m_alias.cpp | 4 |
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)) { |