summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-05-15 13:48:02 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-05-15 13:48:02 -0700
commit4b41feea830fc84e8c1b2fd0982f3e8d8840af96 (patch)
treed9cf047483dd4bf6c21c9465ae51e842ca1e7b50 /src/modules/m_silence.cpp
parente586aaab7c4f7b03514c83451d73b73f55dc6998 (diff)
parent4ab1c43c1eee708fc50a4808f714a731891b75e8 (diff)
Merge pull request #514 from SaberUK/master+virtual-cleanup
Remove virtual keyword from a ton of methods which don't need it, introduce CXX11_OVERRIDE.
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 4c19b4564..2a11a7b8b 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -302,7 +302,7 @@ class ModuleSilence : public Module
{
}
- void init()
+ void init() CXX11_OVERRIDE
{
OnRehash(NULL);
ServerInstance->Modules->AddService(cmdsilence);
@@ -313,14 +313,14 @@ class ModuleSilence : public Module
ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
- void OnRehash(User* user)
+ void OnRehash(User* user) CXX11_OVERRIDE
{
maxsilence = ServerInstance->Config->ConfValue("showwhois")->getInt("maxentries", 32);
if (!maxsilence)
maxsilence = 32;
}
- void On005Numeric(std::map<std::string, std::string>& tokens)
+ void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
{
tokens["ESILENCE"];
tokens["SILENCE"] = ConvToStr(maxsilence);
@@ -360,17 +360,17 @@ class ModuleSilence : public Module
return MOD_RES_PASSTHRU;
}
- ModResult OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
+ ModResult OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) CXX11_OVERRIDE
{
return PreText(user, dest, target_type, text, status, exempt_list, SILENCE_PRIVATE);
}
- ModResult OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
+ ModResult OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) CXX11_OVERRIDE
{
return PreText(user, dest, target_type, text, status, exempt_list, SILENCE_NOTICE);
}
- ModResult OnUserPreInvite(User* source,User* dest,Channel* channel, time_t timeout)
+ ModResult OnUserPreInvite(User* source,User* dest,Channel* channel, time_t timeout) CXX11_OVERRIDE
{
return MatchPattern(dest, source, SILENCE_INVITE);
}
@@ -393,7 +393,7 @@ class ModuleSilence : public Module
return MOD_RES_PASSTHRU;
}
- Version GetVersion()
+ Version GetVersion() CXX11_OVERRIDE
{
return Version("Provides support for the /SILENCE command", VF_OPTCOMMON | VF_VENDOR);
}