mirror of
https://github.com/znc/znc.git
synced 2026-08-08 18:03:22 +02:00
CClient: Use CUser's IRC Socket pointer
CUser already saves the pointer to the IRC socket, so why would CClient's have to do the same? git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1725 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -75,7 +75,6 @@ class CClient : public CZNCSock {
|
||||
public:
|
||||
CClient(const CString& sHostname, unsigned short uPort) : CZNCSock(sHostname, uPort) {
|
||||
m_pUser = NULL;
|
||||
m_pIRCSock = NULL;
|
||||
m_bGotPass = false;
|
||||
m_bGotNick = false;
|
||||
m_bGotUser = false;
|
||||
@@ -105,8 +104,6 @@ public:
|
||||
|
||||
void UserCommand(CString& sCommand);
|
||||
void StatusCTCP(const CString& sCommand);
|
||||
void IRCConnected(CIRCSock* pIRCSock);
|
||||
void IRCDisconnected();
|
||||
void BouncedOff();
|
||||
bool IsAttached() const { return m_pUser != NULL; }
|
||||
|
||||
@@ -130,8 +127,8 @@ public:
|
||||
|
||||
void SetNick(const CString& s);
|
||||
CUser* GetUser() const { return m_pUser; }
|
||||
const CIRCSock* GetIRCSock() const { return m_pIRCSock; }
|
||||
CIRCSock* GetIRCSock() { return m_pIRCSock; }
|
||||
const CIRCSock* GetIRCSock() const;
|
||||
CIRCSock* GetIRCSock();
|
||||
private:
|
||||
|
||||
protected:
|
||||
@@ -144,7 +141,6 @@ protected:
|
||||
CString m_sNick;
|
||||
CString m_sPass;
|
||||
CString m_sUser;
|
||||
CIRCSock* m_pIRCSock;
|
||||
CSmartPtr<CAuthBase> m_spAuth;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user