mirror of
https://github.com/anope/anope.git
synced 2026-07-03 14:33:14 +02:00
Used std::list for ignore's IgnoreData instead of using the old C-style double-linked list, also removed the addition of an ignore when a command "takes too long".
This commit is contained in:
@@ -194,14 +194,6 @@ int m_privmsg(const Anope::string &source, const Anope::string &receiver, const
|
||||
else if (!Config.s_BotServ.empty() && bi->nick.equals_ci(Config.s_BotServ))
|
||||
botserv(u, bi, message);
|
||||
}
|
||||
|
||||
/* Add to ignore list if the command took a significant amount of time. */
|
||||
if (allow_ignore)
|
||||
{
|
||||
stoptime = time(NULL);
|
||||
if (stoptime > starttime && source.find('.') == Anope::string::npos)
|
||||
add_ignore(source, stoptime - starttime);
|
||||
}
|
||||
}
|
||||
|
||||
return MOD_CONT;
|
||||
|
||||
Reference in New Issue
Block a user