diff options
| author | 2013-04-30 08:38:33 +0100 | |
|---|---|---|
| committer | 2013-05-15 21:41:36 +0100 | |
| commit | 4ab1c43c1eee708fc50a4808f714a731891b75e8 (patch) | |
| tree | d9cf047483dd4bf6c21c9465ae51e842ca1e7b50 /src/modules/m_operprefix.cpp | |
| parent | Merge pull request #531 from SaberUK/master+snprintf-removal (diff) | |
| download | inspircd++-4ab1c43c1eee708fc50a4808f714a731891b75e8.tar.gz inspircd++-4ab1c43c1eee708fc50a4808f714a731891b75e8.tar.bz2 inspircd++-4ab1c43c1eee708fc50a4808f714a731891b75e8.zip | |
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_operprefix.cpp')
| -rw-r--r-- | src/modules/m_operprefix.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index 2eeefb2b3..2360ae2a4 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -80,7 +80,7 @@ class ModuleOperPrefixMode : public Module { } - void init() + void init() CXX11_OVERRIDE { ServerInstance->Modules->AddService(opm); @@ -96,7 +96,7 @@ class ModuleOperPrefixMode : public Module mw_added = ServerInstance->Modes->AddModeWatcher(&hideoperwatcher); } - ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) + ModResult OnUserPreJoin(LocalUser* user, Channel* chan, const std::string& cname, std::string& privs, const std::string& keygiven) CXX11_OVERRIDE { /* The user may have the +H umode on himself, but +H does not necessarily correspond * to the +H of m_hideoper. @@ -122,19 +122,19 @@ class ModuleOperPrefixMode : public Module } } - void OnPostOper(User* user, const std::string& opername, const std::string& opertype) + void OnPostOper(User* user, const std::string& opername, const std::string& opertype) CXX11_OVERRIDE { if (IS_LOCAL(user) && (!mw_added || !user->IsModeSet('H'))) SetOperPrefix(user, true); } - void OnLoadModule(Module* mod) + void OnLoadModule(Module* mod) CXX11_OVERRIDE { if ((!mw_added) && (mod->ModuleSourceFile == "m_hideoper.so")) mw_added = ServerInstance->Modes->AddModeWatcher(&hideoperwatcher); } - void OnUnloadModule(Module* mod) + void OnUnloadModule(Module* mod) CXX11_OVERRIDE { if ((mw_added) && (mod->ModuleSourceFile == "m_hideoper.so") && (ServerInstance->Modes->DelModeWatcher(&hideoperwatcher))) mw_added = false; @@ -146,7 +146,7 @@ class ModuleOperPrefixMode : public Module ServerInstance->Modes->DelModeWatcher(&hideoperwatcher); } - Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Gives opers cmode +y which provides a staff prefix.", VF_VENDOR); } |
