mirror of
https://github.com/znc/znc.git
synced 2026-07-06 09:51:25 +02:00
Disconnect unauthed connections after a timeout of 60 secs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1067 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -17,6 +17,7 @@ class CZNC;
|
||||
class CUser;
|
||||
class CIRCSock;
|
||||
class CClient;
|
||||
class CClientTimeout;
|
||||
// !Forward Declarations
|
||||
|
||||
class CAuthBase {
|
||||
@@ -77,6 +78,7 @@ public:
|
||||
|
||||
void InitClient() {
|
||||
m_pUser = NULL;
|
||||
m_pTimeout = NULL;
|
||||
m_pIRCSock = NULL;
|
||||
m_bGotPass = false;
|
||||
m_bGotNick = false;
|
||||
@@ -89,6 +91,8 @@ public:
|
||||
|
||||
void AcceptLogin(CUser& User);
|
||||
void RefuseLogin(const CString& sReason);
|
||||
void StartLoginTimeout();
|
||||
void LoginTimeout();
|
||||
|
||||
CString GetNick(bool bAllowIRCNick = true) const;
|
||||
CString GetNickMask() const;
|
||||
@@ -123,6 +127,7 @@ public:
|
||||
void SetNick(const CString& s);
|
||||
CUser* GetUser() const { return m_pUser; }
|
||||
private:
|
||||
|
||||
protected:
|
||||
bool m_bGotPass;
|
||||
bool m_bGotNick;
|
||||
@@ -136,6 +141,7 @@ protected:
|
||||
CIRCSock* m_pIRCSock;
|
||||
unsigned int m_uKeepNickCounter;
|
||||
CSmartPtr<CAuthBase> m_spAuth;
|
||||
CClientTimeout* m_pTimeout;
|
||||
};
|
||||
|
||||
#endif // !_CLIENT_H
|
||||
|
||||
Reference in New Issue
Block a user