From f91f375b70a4932f8c7ef400cd8f6da32309d318 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Jan 2016 10:29:44 -0500 Subject: Show akill/xline ids in view --- modules/commands/os_akill.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/commands/os_akill.cpp') diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index 81c440ef3..154390135 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -287,6 +287,7 @@ class CommandOSAKill : public Command entry["Creator"] = x->by; entry["Created"] = Anope::strftime(x->created, NULL, true); entry["Expires"] = Anope::Expires(x->expires, source.nc); + entry["ID"] = x->id; entry["Reason"] = x->reason; this->list.AddEntry(entry); } @@ -308,6 +309,7 @@ class CommandOSAKill : public Command entry["Creator"] = x->by; entry["Created"] = Anope::strftime(x->created, NULL, true); entry["Expires"] = Anope::Expires(x->expires, source.nc); + entry["ID"] = x->id; entry["Reason"] = x->reason; list.AddEntry(entry); } @@ -353,7 +355,10 @@ class CommandOSAKill : public Command } ListFormatter list(source.GetAccount()); - list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("Creator")).AddColumn(_("Created")).AddColumn(_("Expires")).AddColumn(_("Reason")); + list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("Creator")).AddColumn(_("Created")).AddColumn(_("Expires")); + if (Config->GetModule("operserv")->Get("akillids")) + list.AddColumn(_("ID")); + list.AddColumn(_("Reason")); this->ProcessList(source, params, list); } -- cgit