summaryrefslogtreecommitdiff
path: root/modules/operserv/info.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
committerAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
commit16ca76c2e7ab287e480185fbb03a0bb438351eda (patch)
treedfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/operserv/info.cpp
parentff030c1eb7c3764f9add2a689479e84d616cabcb (diff)
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/operserv/info.cpp')
-rw-r--r--modules/operserv/info.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/operserv/info.cpp b/modules/operserv/info.cpp
index c6038af5a..ff88a07d1 100644
--- a/modules/operserv/info.cpp
+++ b/modules/operserv/info.cpp
@@ -171,7 +171,8 @@ class CommandOSInfo : public Command
o->SetCreated(Anope::CurTime);
source.Reply(_("Added info to \002{0}\002."), target);
- Log(LOG_ADMIN, source, this) << "to add information to " << target;
+
+ logger.Command(LogType::ADMIN, source, _("{source} used {command} to add oper information to {0}: {1}"), target, info);
if (Anope::ReadOnly)
source.Reply(_("Services are in read-only mode. Any changes made may not persist."));
@@ -198,7 +199,8 @@ class CommandOSInfo : public Command
o->Delete();
source.Reply(_("Deleted info from \002{0}\002."), target);
- Log(LOG_ADMIN, source, this) << "to remove information from " << target;
+
+ logger.Command(LogType::ADMIN, source, _("{source} used {command} to remove oper information from {0}: {1}"), target, info);
if (Anope::ReadOnly)
source.Reply(_("Services are in read-only mode. Any changes made may not persist."));
@@ -222,7 +224,8 @@ class CommandOSInfo : public Command
o->Delete();
source.Reply(_("Cleared info from \002{0}\002."), target);
- Log(LOG_ADMIN, source, this) << "to clear information for " << target;
+
+ logger.Command(LogType::ADMIN, source, _("{source} used {command} to clear oper information for {0}"), target);
if (Anope::ReadOnly)
source.Reply(_("Services are in read-only mode. Any changes made may not persist."));