From 16ca76c2e7ab287e480185fbb03a0bb438351eda Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 23 Jan 2017 12:35:14 -0500 Subject: Make log system use newer format strings Also allow log messages to be translatable --- modules/memoserv/send.cpp | 2 +- modules/memoserv/sendall.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/memoserv') diff --git a/modules/memoserv/send.cpp b/modules/memoserv/send.cpp index 4cdbc0eb3..fdde189f9 100644 --- a/modules/memoserv/send.cpp +++ b/modules/memoserv/send.cpp @@ -53,7 +53,7 @@ class CommandMSSend : public Command if (result == MemoServ::MemoServService::MEMO_SUCCESS) { source.Reply(_("Memo sent to \002%s\002."), nick.c_str()); - Log(LOG_COMMAND, source, this) << "to send a memo to " << nick; + logger.Command(LogType::COMMAND, source, _("{source} used {command} to send a memo to {0}"), nick); } else if (result == MemoServ::MemoServService::MEMO_INVALID_TARGET) { diff --git a/modules/memoserv/sendall.cpp b/modules/memoserv/sendall.cpp index 9ab2a649e..d0b815560 100644 --- a/modules/memoserv/sendall.cpp +++ b/modules/memoserv/sendall.cpp @@ -36,7 +36,7 @@ class CommandMSSendAll : public Command const Anope::string &text = params[0]; - Log(LOG_ADMIN, source, this) << "to send " << text; + logger.Command(LogType::ADMIN, source, _("{source} used {command} to send {0}"), text); for (NickServ::Account *nc : NickServ::service->GetAccountList()) if (nc != source.nc) -- cgit