diff options
author | Adam <Adam@anope.org> | 2011-01-07 15:57:13 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-01-07 15:57:13 -0500 |
commit | 44038491264a350a8849e1d7e8547bbdec134d74 (patch) | |
tree | 08b3b18d0ff4a4d814e638a882916c07882e16de /src/botserv.cpp | |
parent | 9efebe5461fd5985190380d11fd8c3c7a5fba9d6 (diff) |
Added db_mysql_live which allows Anope to pull data
from the four main SQL tables in realtime, which
effectively gives us "live" SQL.
Changed eventfd pipe engine to not use buffered write.
Added TryLock to threading engines.
Made blocking SQL queries in our SQL API thread-safe.
Diffstat (limited to 'src/botserv.cpp')
-rw-r--r-- | src/botserv.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp index c96ccb536..23482f76c 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -359,10 +359,15 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) BotInfo *findbot(const Anope::string &nick) { + BotInfo *bi; if (isdigit(nick[0]) && ircd->ts6) - return BotListByUID.find(nick); - - return BotListByNick.find(nick); + bi = BotListByUID.find(nick); + else + bi = BotListByNick.find(nick); + + FOREACH_MOD(I_OnFindBot, OnFindBot(nick)); + + return bi; } /*************************************************************************/ |