Added KeepBuffer/Buffer config options to the User class

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@168 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-23 17:54:20 +00:00
parent b69a6419ab
commit c8f8285f65
6 changed files with 51 additions and 27 deletions
+8 -1
View File
@@ -25,7 +25,7 @@ public:
CChan* FindChan(const string& sName);
bool AddChan(CChan* pChan);
bool AddChan(const string& sName, unsigned int uBufferCount = 50);
bool AddChan(const string& sName);
bool DelChan(const string& sName);
bool AddServer(const string& sName);
bool AddServer(const string& sName, unsigned short uPort, const string& sPass = "", bool bSSL = false);
@@ -71,6 +71,8 @@ public:
void SetIRCServer(const string& s);
void SetQuitMsg(const string& s);
void SetVersionReply(const string& s);
void SetBufferCount(unsigned int u);
void SetKeepBuffer(bool b);
// !Setters
// Getters
@@ -103,6 +105,8 @@ public:
const string& GetIRCServer() const;
const string& GetQuitMsg() const;
const string& GetVersionReply() const;
unsigned int GetBufferCount() const;
bool KeepBuffer() const;
// !Getters
private:
protected:
@@ -126,10 +130,13 @@ protected:
bool m_bUseClientIP;
bool m_bKeepNick;
bool m_bDenyLoadMod;
bool m_bKeepBuffer;
vector<CServer*> m_vServers;
vector<CChan*> m_vChans;
set<string> m_ssAllowedHosts;
unsigned int m_uServerIdx;
unsigned int m_uBufferCount;
#ifdef _MODULES
CModules m_Modules;