summaryrefslogtreecommitdiff
path: root/modules/operserv/module.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
committerAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
commit8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch)
treeca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/module.cpp
parent9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff)
Track override in CommandSource and use it in the logger
Diffstat (limited to 'modules/operserv/module.cpp')
-rw-r--r--modules/operserv/module.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/operserv/module.cpp b/modules/operserv/module.cpp
index 669638a51..16e34fe04 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)
{
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to load module {0}"), mname);
+ logger.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)
{
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to reload module {0}"), mname);
+ logger.Admin(source, _("{source} used {command} to reload module {0}"), mname);
source.Reply(_("Module \002{0}\002 reloaded."), mname);
}
else
@@ -155,7 +155,7 @@ class CommandOSModUnLoad : public Command
if (status == MOD_ERR_OK)
{
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to unload module {0}"), mname);
+ logger.Admin(source, _("{source} used {command} to unload module {0}"), mname);
source.Reply(_("Module \002{0}\002 unloaded."), mname);
}
else