mirror of
https://github.com/znc/znc.git
synced 2026-08-11 11:23:18 +02:00
Merge pull request #681 from jpnurmi/setuservars
Fix #680 - make channels follow user-level settings when appropriate
This commit is contained in:
+7
-1
@@ -92,7 +92,8 @@ public:
|
||||
// Buffer
|
||||
const CBuffer& GetBuffer() const { return m_Buffer; }
|
||||
unsigned int GetBufferCount() const { return m_Buffer.GetLineCount(); }
|
||||
bool SetBufferCount(unsigned int u, bool bForce = false) { return m_Buffer.SetLineCount(u, bForce); };
|
||||
bool SetBufferCount(unsigned int u, bool bForce = false) { m_bHasBufferCountSet = true; return m_Buffer.SetLineCount(u, bForce); };
|
||||
void InheritBufferCount(unsigned int u, bool bForce = false) { if (!m_bHasBufferCountSet) m_Buffer.SetLineCount(u, bForce); }
|
||||
size_t AddBuffer(const CString& sFormat, const CString& sText = "", const timeval* ts = NULL) { return m_Buffer.AddLine(sFormat, sText, ts); }
|
||||
void ClearBuffer() { m_Buffer.Clear(); }
|
||||
void SendBuffer(CClient* pClient);
|
||||
@@ -115,6 +116,7 @@ public:
|
||||
void SetTopicDate(unsigned long u) { m_ulTopicDate = u; }
|
||||
void SetDefaultModes(const CString& s) { m_sDefaultModes = s; }
|
||||
void SetAutoClearChanBuffer(bool b);
|
||||
void InheritAutoClearChanBuffer(bool b);
|
||||
void SetDetached(bool b = true) { m_bDetached = b; }
|
||||
void SetInConfig(bool b) { m_bInConfig = b; }
|
||||
void SetCreationDate(unsigned long u) { m_ulCreationDate = u; }
|
||||
@@ -146,6 +148,8 @@ public:
|
||||
unsigned long GetCreationDate() const { return m_ulCreationDate; }
|
||||
bool IsDisabled() const { return m_bDisabled; }
|
||||
unsigned int GetJoinTries() const { return m_uJoinTries; }
|
||||
bool HasBufferCountSet() const { return m_bHasBufferCountSet; }
|
||||
bool HasAutoClearChanBufferSet() const { return m_bHasAutoClearChanBufferSet; }
|
||||
// !Getters
|
||||
private:
|
||||
protected:
|
||||
@@ -154,6 +158,8 @@ protected:
|
||||
bool m_bAutoClearChanBuffer;
|
||||
bool m_bInConfig;
|
||||
bool m_bDisabled;
|
||||
bool m_bHasBufferCountSet;
|
||||
bool m_bHasAutoClearChanBufferSet;
|
||||
CString m_sName;
|
||||
CString m_sKey;
|
||||
CString m_sTopic;
|
||||
|
||||
Reference in New Issue
Block a user