diff options
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; |