From b094132c9d1dff2869efd70f3d6f8d1654331780 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 1 Oct 2013 20:57:52 -0400 Subject: Log akill deleteions by number --- modules/commands/os_akill.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 -- cgit