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/resetpass.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/nickserv/resetpass.cpp')
-rw-r--r-- | modules/nickserv/resetpass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/nickserv/resetpass.cpp b/modules/nickserv/resetpass.cpp index 2a3a8c418..5361ed091 100644 --- a/modules/nickserv/resetpass.cpp +++ b/modules/nickserv/resetpass.cpp @@ -49,7 +49,8 @@ class CommandNSResetPass : public Command if (SendResetEmail(source.GetUser(), na, source.service)) { - Log(LOG_COMMAND, source, this) << "for " << na->GetNick() << " (group: " << na->GetAccount()->GetDisplay() << ")"; + logger.Command(LogType::COMMAND, source, _("{source} used {command} for {0} (account: {1})"), na->GetNick(), na->GetAccount()->GetDisplay()); + source.Reply(_("Password reset email for \002{0}\002 has been sent."), na->GetNick()); } } @@ -109,7 +110,7 @@ class NSResetPass : public Module reset.Unset(nc); nc->SetUnconfirmed(false); - Log(LOG_COMMAND, source, &commandnsresetpass) << "confirmed RESETPASS to forcefully identify as " << na->GetNick(); + command->logger.Command(LogType::COMMAND, source, _("{source} used {command} and confirmed password reset to forcefully identify as {0}"), na->GetNick()); if (source.GetUser()) { |