1
0
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:
Naram Qashat
2010-07-29 23:34:39 -04:00
parent abfc9926db
commit 5ed69ed678
5 changed files with 65 additions and 109 deletions
-8
View File
@@ -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;