From 9c0ceed36a31bd1bd00d41f7a2a29bb3ee6d9de7 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 27 Dec 2013 17:24:52 -0500 Subject: [PATCH] Readd channel description to ns alist output --- modules/commands/ns_alist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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); }