diff options
author | Robby- <robby@chat.be> | 2013-10-04 05:45:28 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-10-05 00:33:03 -0400 |
commit | 97d7c21193c490f647ee059dd28d4a37a684cbb1 (patch) | |
tree | 7ec955a2a18d266d79739388511d8a053715340c /modules/commands/os_sxline.cpp | |
parent | e5b8435769f9c5aa5326a60811cfae6fda2f5807 (diff) |
Fix logging for log type 'other'.
os_ignore: Log expired ignores to the normal log level.
cs_drop: Allow Services Operators to actually drop channels in Read-Only mode.
os_akill, os_sxline, cs_akick: Log deletions by number.
Diffstat (limited to 'modules/commands/os_sxline.cpp')
-rw-r--r-- | modules/commands/os_sxline.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index 512f48606..bdd481f33 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -25,11 +25,11 @@ class SXLineDelCallback : public NumberList ~SXLineDelCallback() { if (!deleted) - source.Reply(_("No matching entries on the %s list."), this->command->name.c_str()); + source.Reply(_("No matching entries on the %s list."), source.command.c_str()); else if (deleted == 1) - source.Reply(_("Deleted 1 entry from the %s list."), this->command->name.c_str()); + source.Reply(_("Deleted 1 entry from the %s list."), source.command.c_str()); else - source.Reply(_("Deleted %d entries from the %s list."), deleted, this->command->name.c_str()); + source.Reply(_("Deleted %d entries from the %s list."), deleted, source.command.c_str()); } void HandleNumber(unsigned number) anope_override @@ -42,6 +42,8 @@ class SXLineDelCallback : public NumberList if (!x) return; + Log(LOG_ADMIN, source, command) << "to remove " << x->mask << " from the list"; + ++deleted; DoDel(this->xlm, source, x); } |