diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-05-15 13:48:02 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-05-15 13:48:02 -0700 |
commit | 4b41feea830fc84e8c1b2fd0982f3e8d8840af96 (patch) | |
tree | d9cf047483dd4bf6c21c9465ae51e842ca1e7b50 /src/modules/m_alias.cpp | |
parent | e586aaab7c4f7b03514c83451d73b73f55dc6998 (diff) | |
parent | 4ab1c43c1eee708fc50a4808f714a731891b75e8 (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_alias.cpp')
-rw-r--r-- | src/modules/m_alias.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index cd53c9f97..b08f72011 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -70,7 +70,7 @@ class ModuleAlias : public Module /* whether or not +B users are allowed to use fantasy commands */ bool AllowBots; - virtual void ReadAliases() + void ReadAliases() { ConfigTag* fantasy = ServerInstance->Config->ConfValue("fantasy"); AllowBots = fantasy->getBool("allowbots", false); @@ -98,14 +98,14 @@ class ModuleAlias : public Module } public: - void init() + void init() CXX11_OVERRIDE { ReadAliases(); Implementation eventlist[] = { I_OnPreCommand, I_OnRehash, I_OnUserMessage }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides aliases of commands.", VF_VENDOR); } @@ -135,7 +135,7 @@ class ModuleAlias : public Module return word; } - virtual ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, LocalUser *user, bool validated, const std::string &original_line) + ModResult OnPreCommand(std::string &command, std::vector<std::string> ¶meters, LocalUser *user, bool validated, const std::string &original_line) CXX11_OVERRIDE { std::multimap<irc::string, Alias>::iterator i, upperbound; @@ -175,7 +175,7 @@ class ModuleAlias : public Module return MOD_RES_PASSTHRU; } - virtual void OnUserMessage(User *user, void *dest, int target_type, const std::string &text, char status, const CUList &exempt_list) + void OnUserMessage(User *user, void *dest, int target_type, const std::string &text, char status, const CUList &exempt_list) CXX11_OVERRIDE { if (target_type != TYPE_CHANNEL) { @@ -367,12 +367,12 @@ class ModuleAlias : public Module ServerInstance->Parser->CallHandler(command, pars, user); } - virtual void OnRehash(User* user) + void OnRehash(User* user) CXX11_OVERRIDE { ReadAliases(); } - virtual void Prioritize() + void Prioritize() { // Prioritise after spanningtree so that channel aliases show the alias before the effects. Module* linkmod = ServerInstance->Modules->Find("m_spanningtree.so"); |