summaryrefslogtreecommitdiff
path: root/modules/commands/os_akill.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-10-01 20:57:52 -0400
committerAdam <Adam@anope.org>2013-10-05 00:33:03 -0400
commitb094132c9d1dff2869efd70f3d6f8d1654331780 (patch)
treedd39208c6af81cbceb629ead168c059d2a65c31d /modules/commands/os_akill.cpp
parent82006b868f0fc33cfe8903cdcf854a7f6be9b344 (diff)
Log akill deleteions by number
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r--modules/commands/os_akill.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp
index b04c48935..0fc168535 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -17,8 +17,9 @@ class AkillDelCallback : public NumberList
{
CommandSource &source;
unsigned deleted;
+ Command *cmd;
public:
- AkillDelCallback(CommandSource &_source, const Anope::string &numlist) : NumberList(numlist, true), source(_source), deleted(0)
+ AkillDelCallback(CommandSource &_source, const Anope::string &numlist, Command *c) : NumberList(numlist, true), source(_source), deleted(0), cmd(c)
{
}
@@ -42,6 +43,8 @@ class AkillDelCallback : public NumberList
if (!x)
return;
+ Log(LOG_ADMIN, source, cmd) << "to remove " << x->mask << " from the list";
+
++deleted;
DoDel(source, x);
}
@@ -216,7 +219,7 @@ class CommandOSAKill : public Command
if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
- AkillDelCallback list(source, mask);
+ AkillDelCallback list(source, mask, this);
list.Process();
}
else