mirror of
https://github.com/anope/anope.git
synced 2026-06-25 12:16:39 +02:00
Switched the system for storing users, channels, and sesions to a patricia
tree from STL's unordered_map, which was giving horrible performance.
This commit is contained in:
+2
-10
@@ -618,16 +618,8 @@ bool nickIsServices(const Anope::string &tempnick, bool bot)
|
||||
return true;
|
||||
else if (!Config->s_GlobalNoticer.empty() && nick.equals_ci(Config->s_GlobalNoticer))
|
||||
return true;
|
||||
else if (!Config->s_BotServ.empty() && bot)
|
||||
{
|
||||
for (botinfo_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
|
||||
{
|
||||
BotInfo *bi = it->second;
|
||||
|
||||
if (nick.equals_ci(bi->nick))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (!Config->s_BotServ.empty() && bot && BotListByNick.find(nick))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user