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

View File

@@ -73,7 +73,7 @@ public:
}
}
void OnModCommand(const CString& sCommand) {
void OnModCommand(const CString& sCommand) override {
if (GetUser()->IsAdmin()) {
HandleCommand(sCommand);
} else {
@@ -147,7 +147,7 @@ public:
}
}
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override {
m_pISpoofLockFile = NULL;
m_pIRCSock = NULL;
@@ -162,7 +162,7 @@ public:
return true;
}
virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) {
virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) override {
if (m_pISpoofLockFile != NULL) {
DEBUG("Aborting connection, ident spoof lock file exists");
PutModule("Aborting connection, another user or network is currently connecting and using the ident spoof file");
@@ -179,19 +179,19 @@ public:
return CONTINUE;
}
virtual void OnIRCConnected() {
virtual void OnIRCConnected() override {
if (m_pIRCSock == GetNetwork()->GetIRCSock()) {
ReleaseISpoof();
}
}
virtual void OnIRCConnectionError(CIRCSock *pIRCSock) {
virtual void OnIRCConnectionError(CIRCSock *pIRCSock) override {
if (m_pIRCSock == pIRCSock) {
ReleaseISpoof();
}
}
virtual void OnIRCDisconnected() {
virtual void OnIRCDisconnected() override {
if (m_pIRCSock == GetNetwork()->GetIRCSock()) {
ReleaseISpoof();
}