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/module.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/operserv/module.cpp')
-rw-r--r-- | modules/operserv/module.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/operserv/module.cpp b/modules/operserv/module.cpp index 1e4e0bac5..669638a51 100644 --- a/modules/operserv/module.cpp +++ b/modules/operserv/module.cpp @@ -35,7 +35,7 @@ class CommandOSModLoad : public Command ModuleReturn status = ModuleManager::LoadModule(mname, source.GetUser()); if (status == MOD_ERR_OK) { - Log(LOG_ADMIN, source, this) << "to load module " << mname; + logger.Command(LogType::ADMIN, source, _("{source} used {command} to load module {0}"), mname); source.Reply(_("Module \002{0}\002 loaded."), mname); } else if (status == MOD_ERR_EXISTS) @@ -101,7 +101,7 @@ class CommandOSModReLoad : public Command status = ModuleManager::LoadModule(mname, source.GetUser()); if (status == MOD_ERR_OK) { - Log(LOG_ADMIN, source, this) << "to reload module " << mname; + logger.Command(LogType::ADMIN, source, _("{source} used {command} to reload module {0}"), mname); source.Reply(_("Module \002{0}\002 reloaded."), mname); } else @@ -151,13 +151,11 @@ class CommandOSModUnLoad : public Command return; } - Log(this->GetOwner()) << "Trying to unload module [" << mname << "]"; - ModuleReturn status = ModuleManager::UnloadModule(m, source.GetUser()); if (status == MOD_ERR_OK) { - Log(LOG_ADMIN, source, this) << "to unload module " << mname; + logger.Command(LogType::ADMIN, source, _("{source} used {command} to unload module {0}"), mname); source.Reply(_("Module \002{0}\002 unloaded."), mname); } else |