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_session.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_session.cpp')
-rw-r--r-- | modules/commands/os_session.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 8ed2a5889..80eee41f9 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -128,8 +128,9 @@ class ExceptionDelCallback : public NumberList protected: CommandSource &source; unsigned deleted; + Command *cmd; public: - ExceptionDelCallback(CommandSource &_source, const Anope::string &numlist) : NumberList(numlist, true), source(_source), deleted(0) + ExceptionDelCallback(CommandSource &_source, const Anope::string &numlist, Command *c) : NumberList(numlist, true), source(_source), deleted(0), cmd(c) { } @@ -148,8 +149,9 @@ class ExceptionDelCallback : public NumberList if (!number || number > session_service->GetExceptions().size()) return; - ++deleted; + Log(LOG_ADMIN, source, cmd) << "to remove the session limit exception for " << session_service->GetExceptions()[number - 1]->mask; + ++deleted; DoDel(source, number - 1); } @@ -393,7 +395,7 @@ class CommandOSException : public Command if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos) { - ExceptionDelCallback list(source, mask); + ExceptionDelCallback list(source, mask, this); list.Process(); } else @@ -402,7 +404,7 @@ class CommandOSException : public Command for (; i < end; ++i) if (mask.equals_ci(session_service->GetExceptions()[i]->mask)) { - Log(LOG_ADMIN, source, this) << "to remove session limit exception for " << mask; + Log(LOG_ADMIN, source, this) << "to remove the session limit exception for " << mask; ExceptionDelCallback::DoDel(source, i); source.Reply(_("\002%s\002 deleted from session-limit exception list."), mask.c_str()); break; |