Make all the modules support networks

This commit is contained in:
Kyle Fuller
2011-08-24 14:01:34 +01:00
parent ee7a2083c8
commit 0b1627c529
33 changed files with 199 additions and 183 deletions
+3 -2
View File
@@ -9,6 +9,7 @@
#include "FileUtils.h"
#include "IRCSock.h"
#include "User.h"
#include "IRCNetwork.h"
#include "znc.h"
class CIdentFileModule : public CModule {
@@ -141,7 +142,7 @@ public:
}
virtual void OnIRCConnected() {
if (m_pIRCSock == m_pUser->GetIRCSock()) {
if (m_pIRCSock == m_pNetwork->GetIRCSock()) {
m_pIRCSock = NULL;
ReleaseISpoof();
}
@@ -155,7 +156,7 @@ public:
}
virtual void OnIRCDisconnected() {
if (m_pIRCSock == m_pUser->GetIRCSock()) {
if (m_pIRCSock == m_pNetwork->GetIRCSock()) {
m_pIRCSock = NULL;
ReleaseISpoof();
}