diff options
author | Adam <Adam@anope.org> | 2012-11-05 22:17:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-06 11:02:12 -0500 |
commit | 53b2bdfe5e157a9e5ca5d08873edebcd04511ae1 (patch) | |
tree | f94c8603ffe475405ea668c629eddd7c8ba0891e /modules/commands/os_list.cpp | |
parent | 27ab6a686cb271ea8eae7a243906af5bebeb83d7 (diff) |
Use std::tr1::unordered_map for a few of the larger maps
Diffstat (limited to 'modules/commands/os_list.cpp')
-rw-r--r-- | modules/commands/os_list.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/commands/os_list.cpp b/modules/commands/os_list.cpp index 2850e0203..0272742c1 100644 --- a/modules/commands/os_list.cpp +++ b/modules/commands/os_list.cpp @@ -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; |