summaryrefslogtreecommitdiff
path: root/modules/commands/ns_alist.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-27 17:24:52 -0500
committerAdam <Adam@anope.org>2013-12-27 17:24:52 -0500
commit9c0ceed36a31bd1bd00d41f7a2a29bb3ee6d9de7 (patch)
treedad0c8d0670d0a6f51402b35b10a617f86d27a30 /modules/commands/ns_alist.cpp
parent187973c16a06466173990d38c92a42587fe860e6 (diff)
Readd channel description to ns alist output
Diffstat (limited to 'modules/commands/ns_alist.cpp')
-rw-r--r--modules/commands/ns_alist.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_alist.cpp b/modules/commands/ns_alist.cpp
index d34357c32..4b125e30d 100644
--- a/modules/commands/ns_alist.cpp
+++ b/modules/commands/ns_alist.cpp
@@ -45,7 +45,7 @@ class CommandNSAList : public Command
ListFormatter list(source.GetAccount());
int chan_count = 0;
- list.AddColumn(_("Number")).AddColumn(_("Channel")).AddColumn(_("Access"));
+ list.AddColumn(_("Number")).AddColumn(_("Channel")).AddColumn(_("Access")).AddColumn(_("Description"));
std::deque<ChannelInfo *> queue;
nc->GetChannelReferences(queue);
@@ -62,6 +62,7 @@ class CommandNSAList : public Command
entry["Number"] = stringify(chan_count);
entry["Channel"] = (ci->HasExt("CS_NO_EXPIRE") ? "!" : "") + ci->name;
entry["Access"] = Language::Translate(source.GetAccount(), _("Founder"));
+ entry["Description"] = ci->desc;
list.AddEntry(entry);
continue;
}
@@ -72,6 +73,7 @@ class CommandNSAList : public Command
entry["Number"] = stringify(chan_count);
entry["Channel"] = (ci->HasExt("CS_NO_EXPIRE") ? "!" : "") + ci->name;
entry["Access"] = Language::Translate(source.GetAccount(), _("Successor"));
+ entry["Description"] = ci->desc;
list.AddEntry(entry);
continue;
}
@@ -87,6 +89,7 @@ class CommandNSAList : public Command
for (unsigned j = 0; j < access.size(); ++j)
entry["Access"] = entry["Access"] + ", " + access[j]->AccessSerialize();
entry["Access"] = entry["Access"].substr(2);
+ entry["Description"] = ci->desc;
list.AddEntry(entry);
}