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/nickserv/recover.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/nickserv/recover.cpp')
-rw-r--r-- | modules/nickserv/recover.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/nickserv/recover.cpp b/modules/nickserv/recover.cpp index 60a0bee2f..191e6e019 100644 --- a/modules/nickserv/recover.cpp +++ b/modules/nickserv/recover.cpp @@ -50,7 +50,7 @@ class NSRecoverRequestListener : public NickServ::IdentifyRequestListener if (!na) return; - Log(LOG_COMMAND, source, cmd) << "for " << na->GetNick(); + cmd->logger.Command(LogType::COMMAND, source, _("{source} used {command} for {0}"), na->GetNick()); /* Nick is being held by us, release it */ if (na->HasFieldS("HELD")) @@ -69,7 +69,7 @@ class NSRecoverRequestListener : public NickServ::IdentifyRequestListener if (!source.GetAccount() && na->GetAccount()->IsSecure()) { source.GetUser()->Login(u->Account()); - Log(LOG_COMMAND, source, cmd) << "and was automatically identified to " << u->Account()->GetDisplay(); + cmd->logger.Command(LogType::COMMAND, source, _("{source} used {command} and was automatically identified to {0}"), u->Account()->GetDisplay()); } if (Config->GetModule("nickserv/recover")->Get<bool>("restoreonrecover")) @@ -100,7 +100,7 @@ class NSRecoverRequestListener : public NickServ::IdentifyRequestListener if (!source.GetAccount() && na->GetAccount()->IsSecure()) { source.GetUser()->Login(na->GetAccount()); // Identify the user using the command if they arent identified - Log(LOG_COMMAND, source, cmd) << "and was automatically identified to " << na->GetNick() << " (" << na->GetAccount()->GetDisplay() << ")"; + cmd->logger.Command(LogType::COMMAND, source, _("{source} used {command} and was automatically identified to {0} ({1})"), na->GetNick(), na->GetAccount()->GetDisplay()); source.Reply(_("You have been logged in as \002{0}\002."), na->GetAccount()->GetDisplay()); } @@ -139,7 +139,7 @@ class NSRecoverRequestListener : public NickServ::IdentifyRequestListener source.Reply(_("Access denied.")); if (!pass.empty()) { - Log(LOG_COMMAND, source, cmd) << "with an invalid password for " << user; + cmd->logger.Command(LogType::COMMAND, source, _("{source} used {command} with an invalid password for {0}"), user); if (source.GetUser()) source.GetUser()->BadPassword(); } |