modules: use override keyword

Resolves #736
This commit is contained in:
J-P Nurmi
2014-11-05 07:48:24 +01:00
parent f7270e8b2e
commit f9318d02cf
57 changed files with 509 additions and 509 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ public:
AddCommand("DelUser", static_cast<CModCommand::ModCmdFunc>(&CAutoVoiceMod::OnDelUserCommand), "<user>", "Removes a user");
}
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
// Load the chans from the command line
unsigned int a = 0;
VCString vsChans;
@@ -159,7 +159,7 @@ public:
m_msUsers.clear();
}
virtual void OnJoin(const CNick& Nick, CChan& Channel) {
virtual void OnJoin(const CNick& Nick, CChan& Channel) override {
// If we have ops in this chan
if (Channel.HasPerm(CChan::Op) || Channel.HasPerm(CChan::HalfOp)) {
for (map<CString, CAutoVoiceUser*>::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) {