summaryrefslogtreecommitdiff
path: root/modules/operserv/module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/operserv/module.cpp')
-rw-r--r--modules/operserv/module.cpp8
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