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_sxline.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_sxline.cpp')
-rw-r--r-- | modules/commands/os_sxline.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index b969e9b67..7c460b286 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -118,9 +118,10 @@ class CommandOSSXLineBase : public Command class SXLineListCallback : public NumberList { XLineManager *xlm; + CommandSource &source; ListFormatter &list; public: - SXLineListCallback(XLineManager *x, ListFormatter &_list, const Anope::string &numlist) : NumberList(numlist, false), xlm(x), list(_list) + SXLineListCallback(XLineManager *x, CommandSource &_source, ListFormatter &_list, const Anope::string &numlist) : NumberList(numlist, false), xlm(x), source(_source), list(_list) { } @@ -139,12 +140,12 @@ class CommandOSSXLineBase : public Command entry["Mask"] = x->mask; entry["By"] = 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; list.AddEntry(entry); } } - sl_list(this->xlm(), list, mask); + sl_list(this->xlm(), source, list, mask); sl_list.Process(); } else |