From c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 25 Jan 2019 02:52:11 +0000 Subject: Replace the override macro with the override keyword. --- src/modules/m_operlog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_operlog.cpp') diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index b64e18870..76c5f5d06 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -26,22 +26,22 @@ class ModuleOperLog : public Module bool tosnomask; public: - void init() CXX11_OVERRIDE + void init() override { ServerInstance->SNO->EnableSnomask('r', "OPERLOG"); } - Version GetVersion() CXX11_OVERRIDE + Version GetVersion() override { return Version("A module which logs all oper commands to the ircd log at default loglevel.", VF_VENDOR); } - void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE + void ReadConfig(ConfigStatus& status) override { tosnomask = ServerInstance->Config->ConfValue("operlog")->getBool("tosnomask", false); } - ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) CXX11_OVERRIDE + ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated) override { /* If the command doesnt appear to be valid, we dont want to mess with it. */ if (!validated) @@ -62,7 +62,7 @@ class ModuleOperLog : public Module return MOD_RES_PASSTHRU; } - void On005Numeric(std::map& tokens) CXX11_OVERRIDE + void On005Numeric(std::map& tokens) override { tokens["OPERLOG"]; } -- cgit v1.3.1-10-gc9f91