diff options
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; } /*************************************************************************/ |