diff options
author | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
commit | 16ca76c2e7ab287e480185fbb03a0bb438351eda (patch) | |
tree | dfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/operserv/noop.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/operserv/noop.cpp')
-rw-r--r-- | modules/operserv/noop.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/operserv/noop.cpp b/modules/operserv/noop.cpp index 329a6c338..ce3ce9f9b 100644 --- a/modules/operserv/noop.cpp +++ b/modules/operserv/noop.cpp @@ -53,7 +53,8 @@ class CommandOSNOOP : public Command IRCD->Send<messages::NOOP>(s, true); s->Extend<Anope::string>("noop", source.GetNick()); - Log(LOG_ADMIN, source, this) << "SET on " << s->GetName(); + logger.Command(LogType::ADMIN, source, _("{source} used {command} on {0}"), s->GetName()); + source.Reply(_("All operators from \002{0}\002 have been removed."), s->GetName()); Anope::string reason = "NOOP command used by " + source.GetNick(); @@ -70,7 +71,9 @@ class CommandOSNOOP : public Command { s->Shrink<Anope::string>("noop"); IRCD->Send<messages::NOOP>(s, false); - Log(LOG_ADMIN, source, this) << "REVOKE on " << s->GetName(); + + logger.Command(LogType::ADMIN, source, _("{source} used {command} REVOKE on {0}"), s->GetName()); + source.Reply(_("All O:lines of \002{0}\002 have been reset."), s->GetName()); } else |