aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_override.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-01-25 02:52:11 +0000
committerGravatar Sadie Powell2019-01-25 02:52:11 +0000
commitc78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8 (patch)
tree4d7b4e6135e4b8340698419a83bc29edec18a5ea /src/modules/m_override.cpp
parentRemove the DEPRECATED_METHOD macro. (diff)
downloadinspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.tar.gz
inspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.tar.bz2
inspircd++-c78ecdf579c0bf0a75ed0f9641ffef8d89c17ec8.zip
Replace the override macro with the override keyword.
Diffstat (limited to 'src/modules/m_override.cpp')
-rw-r--r--src/modules/m_override.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 7155e7e76..9c6914459 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -88,13 +88,13 @@ class ModuleOverride : public Module
{
}
- void init() CXX11_OVERRIDE
+ void init() override
{
ServerInstance->SNO->EnableSnomask('v', "OVERRIDE");
UmodeEnabled = ServerInstance->Config->ConfValue("override")->getBool("enableumode");
}
- void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
+ void ReadConfig(ConfigStatus& status) override
{
// re-read our config options
ConfigTag* tag = ServerInstance->Config->ConfValue("override");
@@ -102,7 +102,7 @@ class ModuleOverride : public Module
RequireKey = tag->getBool("requirekey");
}
- void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
+ void On005Numeric(std::map<std::string, std::string>& tokens) override
{
tokens["OVERRIDE"];
}
@@ -119,7 +119,7 @@ class ModuleOverride : public Module
}
- ModResult OnPreTopicChange(User *source, Channel *channel, const std::string &topic) CXX11_OVERRIDE
+ ModResult OnPreTopicChange(User *source, Channel *channel, const std::string &topic) override
{
if (IS_LOCAL(source) && source->IsOper() && CanOverride(source, "TOPIC"))
{
@@ -135,7 +135,7 @@ class ModuleOverride : public Module
return MOD_RES_PASSTHRU;
}
- ModResult OnUserPreKick(User* source, Membership* memb, const std::string &reason) CXX11_OVERRIDE
+ ModResult OnUserPreKick(User* source, Membership* memb, const std::string &reason) override
{
if (source->IsOper() && CanOverride(source,"KICK"))
{
@@ -150,7 +150,7 @@ class ModuleOverride : public Module
return MOD_RES_PASSTHRU;
}
- ModResult OnPreMode(User* source, User* dest, Channel* channel, Modes::ChangeList& modes) CXX11_OVERRIDE
+ ModResult OnPreMode(User* source, User* dest, Channel* channel, Modes::ChangeList& modes) override
{
if (!channel)
return MOD_RES_PASSTHRU;
@@ -192,7 +192,7 @@ class ModuleOverride : public Module
return MOD_RES_PASSTHRU;
}
- ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE
+ ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) override
{
if (user->IsOper())
{
@@ -218,7 +218,7 @@ class ModuleOverride : public Module
return MOD_RES_PASSTHRU;
}
- Version GetVersion() CXX11_OVERRIDE
+ Version GetVersion() override
{
return Version("Provides support for allowing opers to override certain things",VF_VENDOR);
}