summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-30 08:38:33 +0100
committerPeter Powell <petpow@saberuk.com>2013-05-15 21:41:36 +0100
commit4ab1c43c1eee708fc50a4808f714a731891b75e8 (patch)
treed9cf047483dd4bf6c21c9465ae51e842ca1e7b50 /src/modules/m_shun.cpp
parente586aaab7c4f7b03514c83451d73b73f55dc6998 (diff)
Tidy up keywords on module methods.
- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it.
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index f1ce56d24..e7dc3086d 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -179,7 +179,7 @@ class ModuleShun : public Module
{
}
- void init()
+ void init() CXX11_OVERRIDE
{
ServerInstance->XLines->RegisterFactory(&f);
ServerInstance->Modules->AddService(cmd);
@@ -189,7 +189,7 @@ class ModuleShun : public Module
OnRehash(NULL);
}
- virtual ~ModuleShun()
+ ~ModuleShun()
{
ServerInstance->XLines->DelAll("SHUN");
ServerInstance->XLines->UnregisterFactory(&f);
@@ -201,7 +201,7 @@ class ModuleShun : public Module
ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, &alias);
}
- virtual ModResult OnStats(char symbol, User* user, string_list& out)
+ ModResult OnStats(char symbol, User* user, string_list& out) CXX11_OVERRIDE
{
if (symbol != 'H')
return MOD_RES_PASSTHRU;
@@ -210,7 +210,7 @@ class ModuleShun : public Module
return MOD_RES_DENY;
}
- virtual void OnRehash(User* user)
+ void OnRehash(User* user) CXX11_OVERRIDE
{
ConfigTag* tag = ServerInstance->Config->ConfValue("shun");
std::string cmds = tag->getString("enabledcommands");
@@ -233,7 +233,7 @@ class ModuleShun : public Module
affectopers = tag->getBool("affectopers", false);
}
- virtual ModResult OnPreCommand(std::string &command, std::vector<std::string>& parameters, LocalUser* user, bool validated, const std::string &original_line)
+ ModResult OnPreCommand(std::string &command, std::vector<std::string>& parameters, LocalUser* user, bool validated, const std::string &original_line) CXX11_OVERRIDE
{
if (validated)
return MOD_RES_PASSTHRU;
@@ -274,7 +274,7 @@ class ModuleShun : public Module
return MOD_RES_PASSTHRU;
}
- virtual Version GetVersion()
+ Version GetVersion() CXX11_OVERRIDE
{
return Version("Provides the /SHUN command, which stops a user from executing all except configured commands.",VF_VENDOR|VF_COMMON);
}