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/global/global.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/global') diff --git a/modules/global/global.cpp b/modules/global/global.cpp index af4add942..1d7ff7073 100644 --- a/modules/global/global.cpp +++ b/modules/global/global.cpp @@ -41,7 +41,8 @@ class CommandGLGlobal : public Command return; } - Log(LOG_ADMIN, source, this); + logger.Command(LogType::ADMIN, source, _("{source} used {command} to send {0}"), msg); + service->SendGlobal(NULL, source.GetNick(), msg); } -- cgit