diff options
author | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
commit | 8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch) | |
tree | ca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/config.cpp | |
parent | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff) |
Track override in CommandSource and use it in the logger
Diffstat (limited to 'modules/operserv/config.cpp')
-rw-r--r-- | modules/operserv/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/config.cpp b/modules/operserv/config.cpp index 2b6ce015d..5c41b8ce2 100644 --- a/modules/operserv/config.cpp +++ b/modules/operserv/config.cpp @@ -52,7 +52,7 @@ class CommandOSConfig : public Command block->Set(params[2], params[3]); - logger.Command(LogType::ADMIN, source, _("{source} used {command} to change the configuration value of {0}:{1} to {2}"), + logger.Admin(source, _("{source} used {command} to change the configuration value of {0}:{1} to {2}"), params[1], params[2], params[3]); source.Reply(_("Value of \002{0}:{1}\002 changed to \002{2}\002."), params[1], params[2], params[3]); } @@ -61,7 +61,7 @@ class CommandOSConfig : public Command /* Blocks we should show */ const Anope::string show_blocks[] = { "serverinfo", "networkinfo", "options", "" }; - logger.Command(LogType::ADMIN, source, _("{source} used {command} to view the configuration")); + logger.Admin(source, _("{source} used {command} to view the configuration")); for (unsigned i = 0; !show_blocks[i].empty(); ++i) { |