mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Remove an unused var from CClient
If CClient::m_bAuthed was false, CClient::m_pUser was NULL as well and if it was true, m_pUser wasn't NULL, too. So why not take that var for this job? git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1003 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -78,7 +78,6 @@ public:
|
||||
void InitClient() {
|
||||
m_pUser = NULL;
|
||||
m_pIRCSock = NULL;
|
||||
m_bAuthed = false;
|
||||
m_bGotPass = false;
|
||||
m_bGotNick = false;
|
||||
m_bGotUser = false;
|
||||
@@ -102,7 +101,7 @@ public:
|
||||
void IRCConnected(CIRCSock* pIRCSock);
|
||||
void IRCDisconnected();
|
||||
void BouncedOff();
|
||||
bool IsAttached() const { return m_bAuthed; }
|
||||
bool IsAttached() const { return m_pUser != NULL; }
|
||||
|
||||
void PutIRC(const CString& sLine);
|
||||
void PutClient(const CString& sLine);
|
||||
@@ -125,7 +124,6 @@ public:
|
||||
CUser* GetUser() const { return m_pUser; }
|
||||
private:
|
||||
protected:
|
||||
bool m_bAuthed;
|
||||
bool m_bGotPass;
|
||||
bool m_bGotNick;
|
||||
bool m_bGotUser;
|
||||
|
||||
Reference in New Issue
Block a user