mirror of
https://github.com/anope/anope.git
synced 2026-07-02 05:26:38 +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:
@@ -38,9 +38,9 @@ class CommandOSNOOP : public Command
|
||||
u->SendMessage(OperServ, OPER_NOOP_SET, server.c_str());
|
||||
|
||||
/* Kill all the IRCops of the server */
|
||||
for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; )
|
||||
for (patricia_tree<User>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
|
||||
{
|
||||
User *u2 = it->second;
|
||||
User *u2 = *it;
|
||||
++it;
|
||||
|
||||
if (u2 && is_oper(u2) && Anope::Match(u2->server->GetName(), server, true))
|
||||
|
||||
Reference in New Issue
Block a user