From c792c7f62df41c48d0d813a809e5415cbefa38b2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 13 Nov 2010 15:20:56 -0500 Subject: Switched the system for storing users, channels, and sesions to a patricia tree from STL's unordered_map, which was giving horrible performance. --- modules/core/cs_akick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/core/cs_akick.cpp') diff --git a/modules/core/cs_akick.cpp b/modules/core/cs_akick.cpp index 579c013f2..175b20047 100644 --- a/modules/core/cs_akick.cpp +++ b/modules/core/cs_akick.cpp @@ -207,9 +207,9 @@ class CommandCSAKick : public Command { /* Match against all currently online users with equal or * higher access. - Viper */ - for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it) + for (patricia_tree::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it) { - User *u2 = it->second; + User *u2 = *it; if ((check_access(u2, ci, CA_FOUNDER) || get_access(u2, ci) >= get_access(u, ci)) && match_usermask(mask, u2)) { -- cgit