mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Remove CUser::ConnectPaused()
Once Upon A Time, this was the only mechanism that throttled users that wanted to connect to IRC servers. ConnectDelay and ServerThrottle now do a much better job on this problem. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2174 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -51,7 +51,6 @@ protected:
|
||||
CUser::CUser(const CString& sUserName) {
|
||||
m_pIRCSock = NULL;
|
||||
m_fTimezoneOffset = 0;
|
||||
m_uConnectTime = 0;
|
||||
SetUserName(sUserName);
|
||||
m_sNick = m_sCleanUserName;
|
||||
m_sIdent = m_sCleanUserName;
|
||||
@@ -1247,20 +1246,6 @@ const CString& CUser::GetPass() const { return m_sPass; }
|
||||
CUser::eHashType CUser::GetPassHashType() const { return m_eHashType; }
|
||||
const CString& CUser::GetPassSalt() const { return m_sPassSalt; }
|
||||
|
||||
bool CUser::ConnectPaused() {
|
||||
if (!m_uConnectTime) {
|
||||
m_uConnectTime = time(NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (time(NULL) - m_uConnectTime >= 5) {
|
||||
m_uConnectTime = time(NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CUser::UseClientIP() const { return m_bUseClientIP; }
|
||||
bool CUser::DenyLoadMod() const { return m_bDenyLoadMod; }
|
||||
bool CUser::IsAdmin() const { return m_bAdmin; }
|
||||
|
||||
Reference in New Issue
Block a user