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:
psychon
2010-11-06 16:52:19 +00:00
parent cce5824439
commit 612b61dada
3 changed files with 0 additions and 20 deletions
-15
View File
@@ -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; }