mirror of
https://github.com/anope/anope.git
synced 2026-07-04 09:43:13 +02:00
Sort output in ns_list and cs_list
This commit is contained in:
@@ -74,7 +74,11 @@ class CommandCSList : public Command
|
||||
ListFormatter list;
|
||||
list.AddColumn("Name").AddColumn("Description");
|
||||
|
||||
Anope::map<ChannelInfo *> ordered_map;
|
||||
for (registered_channel_map::const_iterator it = RegisteredChannelList->begin(), it_end = RegisteredChannelList->end(); it != it_end; ++it)
|
||||
ordered_map[it->first] = it->second;
|
||||
|
||||
for (Anope::map<ChannelInfo *>::const_iterator it = ordered_map.begin(), it_end = ordered_map.end(); it != it_end; ++it)
|
||||
{
|
||||
const ChannelInfo *ci = it->second;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user