summaryrefslogtreecommitdiff
path: root/modules/operserv/session.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
committerAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
commit8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch)
treeca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/session.cpp
parent9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff)
Track override in CommandSource and use it in the logger
Diffstat (limited to 'modules/operserv/session.cpp')
-rw-r--r--modules/operserv/session.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/operserv/session.cpp b/modules/operserv/session.cpp
index 0b6f207a5..1f9827f21 100644
--- a/modules/operserv/session.cpp
+++ b/modules/operserv/session.cpp
@@ -303,7 +303,7 @@ class CommandOSSession : public Command
{
const Anope::string &cmd = params[0];
- logger.Command(LogType::ADMIN, source, _("{source} used {command} {0} {1}"), cmd, params[1]);
+ logger.Admin(source, _("{source} used {command} {0} {1}"), cmd, params[1]);
if (!session_limit)
source.Reply(_("Session limiting is disabled."));
@@ -422,7 +422,7 @@ class CommandOSException : public Command
if (MOD_RESULT == EVENT_STOP)
return;
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to set the session limit for {0} to {1}"), mask, limit);
+ logger.Admin(source, _("{source} used {command} to set the session limit for {0} to {1}"), mask, limit);
source.Reply(_("Session limit for \002{0}\002 set to \002{1}\002."), mask, limit);
if (Anope::ReadOnly)
@@ -453,7 +453,7 @@ class CommandOSException : public Command
Exception *e = exceptions[number - 1];
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to remove the session limit exception for {0}"), e->GetMask());
+ logger.Admin(source, _("{source} used {command} to remove the session limit exception for {0}"), e->GetMask());
++deleted;
DoDel(source, e);
@@ -474,7 +474,7 @@ class CommandOSException : public Command
for (Exception *e : Serialize::GetObjects<Exception *>())
if (mask.equals_ci(e->GetMask()))
{
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to remove the session limit exception for {0}"), e->GetMask());
+ logger.Admin(source, _("{source} used {command} to remove the session limit exception for {0}"), e->GetMask());
DoDel(source, e);
source.Reply(_("\002{0}\002 deleted from session-limit exception list."), mask);