summaryrefslogtreecommitdiff
path: root/modules/commands/ns_list.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-02-10 12:30:45 -0500
committerAdam <Adam@anope.org>2013-02-10 12:31:37 -0500
commitfc4b884d0ea7549e5b63cd9e3c13a29aa8627c24 (patch)
tree5aaf0566aa7ecede6dd318c88d409faaa1af8108 /modules/commands/ns_list.cpp
parent9b3ecfe777d38fffb50396350ec6f37fdfcfacd7 (diff)
Sort output in ns_list and cs_list
Diffstat (limited to 'modules/commands/ns_list.cpp')
-rw-r--r--modules/commands/ns_list.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp
index 7cbfc5b97..b96b21412 100644
--- a/modules/commands/ns_list.cpp
+++ b/modules/commands/ns_list.cpp
@@ -75,7 +75,11 @@ class CommandNSList : public Command
list.AddColumn("Nick").AddColumn("Last usermask");
+ Anope::map<NickAlias *> ordered_map;
for (nickalias_map::const_iterator it = NickAliasList->begin(), it_end = NickAliasList->end(); it != it_end; ++it)
+ ordered_map[it->first] = it->second;
+
+ for (Anope::map<NickAlias *>::const_iterator it = ordered_map.begin(), it_end = ordered_map.end(); it != it_end; ++it)
{
const NickAlias *na = it->second;