summaryrefslogtreecommitdiff
path: root/src/botserv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/botserv.cpp')
-rw-r--r--src/botserv.cpp16
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;
}