diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-29 23:34:39 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-29 23:34:39 -0400 |
commit | 5ed69ed67821fb1d84d82fd31d4729c8d8657f53 (patch) | |
tree | 57f58976d54fec722d5985d91b4dd42ac3033d71 /src/messages.cpp | |
parent | abfc9926dbe0b9dd00c060a9e4ebcc53e60e6709 (diff) |
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".
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/messages.cpp b/src/messages.cpp index 49188ce93..046bc48b1 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -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; |