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; }
-2
View File
@@ -68,7 +68,6 @@ public:
static bool IsValidUserName(const CString& sUserName);
static CString MakeCleanUserName(const CString& sUserName);
bool IsLastServer() const;
bool ConnectPaused();
void DelClients();
void DelServers();
@@ -226,7 +225,6 @@ public:
// !Getters
private:
protected:
time_t m_uConnectTime;
CString m_sUserName;
CString m_sCleanUserName;
CString m_sNick;
-3
View File
@@ -123,9 +123,6 @@ bool CZNC::ConnectUser(CUser *pUser) {
if (pIRCSock || !pUser->HasServers())
return false;
if (pUser->ConnectPaused())
return false;
CServer* pServer = pUser->GetNextServer();
if (!pServer)