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_inviteexception.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_inviteexception.cpp')
| -rw-r--r-- | src/modules/m_inviteexception.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index 69498a942..aeecb9a84 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -53,7 +53,7 @@ public: { } - void init() + void init() CXX11_OVERRIDE { ServerInstance->Modules->AddService(ie); @@ -63,12 +63,12 @@ public: ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } - void On005Numeric(std::map<std::string, std::string>& tokens) + void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE { tokens["INVEX"] = "I"; } - ModResult OnCheckInvite(User* user, Channel* chan) + ModResult OnCheckInvite(User* user, Channel* chan) CXX11_OVERRIDE { ListModeBase::ModeList* list = ie.GetList(chan); if (list) @@ -85,25 +85,25 @@ public: return MOD_RES_PASSTHRU; } - ModResult OnCheckKey(User* user, Channel* chan, const std::string& key) + ModResult OnCheckKey(User* user, Channel* chan, const std::string& key) CXX11_OVERRIDE { if (invite_bypass_key) return OnCheckInvite(user, chan); return MOD_RES_PASSTHRU; } - void OnSyncChannel(Channel* chan, Module* proto, void* opaque) + void OnSyncChannel(Channel* chan, Module* proto, void* opaque) CXX11_OVERRIDE { ie.DoSyncChannel(chan, proto, opaque); } - void OnRehash(User* user) + void OnRehash(User* user) CXX11_OVERRIDE { invite_bypass_key = ServerInstance->Config->ConfValue("inviteexception")->getBool("bypasskey", true); ie.DoRehash(); } - Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Provides support for the +I channel mode", VF_VENDOR); } |
