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:
psychon
2008-04-01 08:49:33 +00:00
parent 74447ee1d1
commit e7bb3e5daa
2 changed files with 6 additions and 9 deletions
+1 -3
View File
@@ -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;