diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /src/botserv.cpp | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'src/botserv.cpp')
-rw-r--r-- | src/botserv.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp index 962f2b80e..4ec6465a1 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -21,24 +21,24 @@ #include "access.h" #include "channels.h" -BotInfo *findbot(const Anope::string &nick) +BotInfo* findbot(const Anope::string &nick) { BotInfo *bi = NULL; if (isdigit(nick[0]) && ircd->ts6) { - Anope::map<BotInfo *>::iterator it = BotListByUID.find(nick); - if (it != BotListByUID.end()) + botinfouid_map::iterator it = BotListByUID->find(nick); + if (it != BotListByUID->end()) bi = it->second; } else { - Anope::insensitive_map<BotInfo *>::iterator it = BotListByNick.find(nick); - if (it != BotListByNick.end()) + botinfo_map::iterator it = BotListByNick->find(nick); + if (it != BotListByNick->end()) bi = it->second; } - - FOREACH_MOD(I_OnFindBot, OnFindBot(nick)); - + + if (bi) + bi->QueueUpdate(); return bi; } |