From b9436b12991c7a74fa539f8abee4af6d5a65dbba Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Oct 2016 10:48:37 -0400 Subject: Show akill/xline ids in view --- modules/operserv/akill.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/operserv/akill.cpp') diff --git a/modules/operserv/akill.cpp b/modules/operserv/akill.cpp index 9a6a7b271..36d555b79 100644 --- a/modules/operserv/akill.cpp +++ b/modules/operserv/akill.cpp @@ -258,6 +258,7 @@ class CommandOSAKill : public Command entry["Creator"] = x->GetBy(); entry["Created"] = Anope::strftime(x->GetCreated(), NULL, true); entry["Expires"] = Anope::Expires(x->GetExpires(), source.nc); + entry["ID"] = x->GetID(); entry["Reason"] = x->GetReason(); list.AddEntry(entry); }, @@ -276,6 +277,7 @@ class CommandOSAKill : public Command entry["Creator"] = x->GetBy(); entry["Created"] = Anope::strftime(x->GetCreated(), NULL, true); entry["Expires"] = Anope::Expires(x->GetExpires(), source.nc); + entry["ID"] = x->GetID(); entry["Reason"] = x->GetReason(); list.AddEntry(entry); } @@ -322,7 +324,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