summaryrefslogtreecommitdiff
path: root/modules/commands/os_sxline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_sxline.cpp')
-rw-r--r--modules/commands/os_sxline.cpp7
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