diff options
author | Robby- <robby@chat.be> | 2013-09-24 06:04:59 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | 12a0311aaa783385bba3194e92ed0eb4665621ed (patch) | |
tree | 11ed0b90d0a6454a7d87cbdee137c7438ab21064 /modules/commands/os_akill.cpp | |
parent | cf653fc08429054e5451482166622fc8db8fec1f (diff) |
Add missing columns to os_forbid. Make most lists with dates use the shorter output format.
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r-- | modules/commands/os_akill.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index fd58e0ce0..b945058da 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -254,9 +254,10 @@ class CommandOSAKill : public Command { class ListCallback : public NumberList { + CommandSource &source; ListFormatter &list; public: - ListCallback(ListFormatter &_list, const Anope::string &numstr) : NumberList(numstr, false), list(_list) + ListCallback(CommandSource &_source, ListFormatter &_list, const Anope::string &numstr) : NumberList(numstr, false), source(_source), list(_list) { } @@ -275,12 +276,12 @@ class CommandOSAKill : public Command entry["Mask"] = x->mask; entry["Creator"] = x->by; entry["Created"] = Anope::strftime(x->created, NULL, true); - entry["Expires"] = Anope::Expires(x->expires); + entry["Expires"] = Anope::Expires(x->expires, source.nc); entry["Reason"] = x->reason; this->list.AddEntry(entry); } } - nl_list(list, mask); + nl_list(source, list, mask); nl_list.Process(); } else |