mirror of
https://github.com/anope/anope.git
synced 2026-07-05 04:13:13 +02:00
Use std::tr1::unordered_map for a few of the larger maps
This commit is contained in:
@@ -153,9 +153,14 @@ class CommandOSUserList : public Command
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Historically this has been ordered, so... */
|
||||
Anope::map<User *> ordered_map;
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
ordered_map[it->first] = it->second;
|
||||
|
||||
source.Reply(_("Users list:"));
|
||||
|
||||
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (Anope::map<User *>::const_iterator it = ordered_map.begin(); it != ordered_map.end(); ++it)
|
||||
{
|
||||
User *u2 = it->second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user