: Module(Me)
{
ReadAliases();
- pars.resize(MAXPARAMETERS);
-
Me->Modules->Attach(I_OnPreCommand, this);
Me->Modules->Attach(I_OnRehash, this);
/* Does it match the pattern? */
if (!Aliases[i].format.empty())
{
- if (!match(Aliases[i].case_sensitive, compare.c_str(), Aliases[i].format.c_str()))
+ if (!match(Aliases[i].case_sensitive, compare, Aliases[i].format))
continue;
}
SearchAndReplace(newline, "\r", "$");
irc::tokenstream ss(newline);
+ pars.clear();
std::string command, token;
+
ss.GetToken(command);
while (ss.GetToken(token) && (pars.size() <= MAXPARAMETERS))
{