summaryrefslogtreecommitdiff
path: root/modules/commands/os_session.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-09-23 19:14:20 +0200
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commit06c5914820cd9a9d483d84113ac60c16dfd3627d (patch)
tree2cc7d2361e65b12dd36e9274867f38cfb5f0f6a5 /modules/commands/os_session.cpp
parentbf67b9ee5caee3224a44f3999a3f7f78fbce0a25 (diff)
Fix akillids to work again. os_session: Add missing num to del syntax and add missing expiry column.
Diffstat (limited to 'modules/commands/os_session.cpp')
-rw-r--r--modules/commands/os_session.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp
index 551f17f7f..790156a06 100644
--- a/modules/commands/os_session.cpp
+++ b/modules/commands/os_session.cpp
@@ -484,7 +484,8 @@ class CommandOSException : public Command
entry["Number"] = stringify(Number);
entry["Mask"] = e->mask;
entry["By"] = e->who;
- entry["Created"] = Anope::strftime(e->time, source.GetAccount());
+ entry["Created"] = Anope::strftime(e->time, NULL, true);
+ entry["Expires"] = Anope::Expires(e->expires, source.GetAccount());
entry["Limit"] = stringify(e->limit);
entry["Reason"] = e->reason;
this->list.AddEntry(entry);
@@ -504,7 +505,8 @@ class CommandOSException : public Command
entry["Number"] = stringify(i + 1);
entry["Mask"] = e->mask;
entry["By"] = e->who;
- entry["Created"] = Anope::strftime(e->time, source.GetAccount());
+ entry["Created"] = Anope::strftime(e->time, NULL, true);
+ entry["Expires"] = Anope::Expires(e->expires, source.GetAccount());
entry["Limit"] = stringify(e->limit);
entry["Reason"] = e->reason;
list.AddEntry(entry);
@@ -537,7 +539,7 @@ class CommandOSException : public Command
void DoView(CommandSource &source, const std::vector<Anope::string> &params)
{
ListFormatter list(source.GetAccount());
- list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("By")).AddColumn(_("Created")).AddColumn(_("Limit")).AddColumn(_("Reason"));
+ list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("By")).AddColumn(_("Created")).AddColumn(_("Expires")).AddColumn(_("Limit")).AddColumn(_("Reason"));
this->ProcessList(source, params, list);
}
@@ -595,9 +597,12 @@ class CommandOSException : public Command
"may carry at a time. A value of zero means the host has an\n"
"unlimited session limit. See the \002AKILL\002 help for details about\n"
"the format of the optional \037expiry\037 parameter.\n"
+ " \n"
"\002EXCEPTION DEL\002 removes the given mask from the exception list.\n"
+ " \n"
"\002EXCEPTION MOVE\002 moves exception \037num\037 to \037position\037. The\n"
"sessions inbetween will be shifted up or down to fill the gap.\n"
+ " \n"
"\002EXCEPTION LIST\002 and \002EXCEPTION VIEW\002 show all current\n"
"sessions if the optional mask is given, the list is limited\n"
"to those sessions matching the mask. The difference is that\n"