summaryrefslogtreecommitdiff
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-07-12 14:41:52 +0100
committerPeter Powell <petpow@saberuk.com>2017-07-12 14:41:52 +0100
commitd1df2bce56275e1297d94d82d4dbef6f6cf582b6 (patch)
tree3b968cb8a2b3b90b74ae0633e2a4a7fa04782d8e /src/modules/m_operprefix.cpp
parentf471083cd0519d47c7c7a09029813ede41994f7b (diff)
Add CXX11_OVERRIDE to overridden members that lack it.
This fixes a ton of warnings when building on compilers that default to C++11 or newer.
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index d66f99450..b355047ee 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -72,7 +72,7 @@ class ModuleOperPrefixMode : public Module
return MOD_RES_PASSTHRU;
}
- void OnPostJoin(Membership* memb)
+ void OnPostJoin(Membership* memb) CXX11_OVERRIDE
{
if ((!IS_LOCAL(memb->user)) || (!memb->user->IsOper()) || (memb->user->IsModeSet(hideopermode)))
return;
@@ -105,7 +105,7 @@ class ModuleOperPrefixMode : public Module
return Version("Gives opers cmode +y which provides a staff prefix.", VF_VENDOR);
}
- void Prioritize()
+ void Prioritize() CXX11_OVERRIDE
{
// m_opermodes may set +H on the oper to hide him, we don't want to set the oper prefix in that case
Module* opermodes = ServerInstance->Modules->Find("m_opermodes.so");