mirror of
https://github.com/znc/znc.git
synced 2026-08-08 18:03:22 +02:00
Move IRCConnectEnabled to each network instead of a global user setting
This commit is contained in:
@@ -89,6 +89,9 @@ public:
|
||||
bool SetNextServer(const CServer* pServer);
|
||||
bool IsLastServer() const;
|
||||
|
||||
void SetIRCConnectEnabled(bool b);
|
||||
bool GetIRCConnectEnabled() const { return m_bIRCConnectEnabled; }
|
||||
|
||||
CIRCSock* GetIRCSock() { return m_pIRCSock; }
|
||||
const CIRCSock* GetIRCSock() const { return m_pIRCSock; }
|
||||
const CString& GetIRCServer() const;
|
||||
@@ -159,6 +162,7 @@ protected:
|
||||
|
||||
CString m_sChanPrefixes;
|
||||
|
||||
bool m_bIRCConnectEnabled;
|
||||
CString m_sIRCServer;
|
||||
vector<CServer*> m_vServers;
|
||||
unsigned int m_uServerIdx; ///< Index in m_vServers of our current server + 1
|
||||
|
||||
@@ -125,7 +125,6 @@ public:
|
||||
void SetJoinTries(unsigned int i) { m_uMaxJoinTries = i; }
|
||||
void SetMaxJoins(unsigned int i) { m_uMaxJoins = i; }
|
||||
void SetSkinName(const CString& s) { m_sSkinName = s; }
|
||||
void SetIRCConnectEnabled(bool b) { m_bIRCConnectEnabled = b; }
|
||||
// !Setters
|
||||
|
||||
// Getters
|
||||
@@ -146,7 +145,6 @@ public:
|
||||
const CString& GetTimestampFormat() const;
|
||||
bool GetTimestampAppend() const;
|
||||
bool GetTimestampPrepend() const;
|
||||
bool GetIRCConnectEnabled() const { return m_bIRCConnectEnabled; }
|
||||
|
||||
const CString& GetUserPath() const;
|
||||
|
||||
@@ -202,7 +200,6 @@ protected:
|
||||
bool m_bBeingDeleted;
|
||||
bool m_bAppendTimestamp;
|
||||
bool m_bPrependTimestamp;
|
||||
bool m_bIRCConnectEnabled;
|
||||
|
||||
CUserTimer* m_pUserTimer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user