Make it more clear where the 'IRCConnectEnabled'-flag is checked

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1111 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-07-03 10:16:49 +00:00
parent 34e62cd86a
commit 5c7b586b2d
2 changed files with 4 additions and 2 deletions

View File

@@ -1086,12 +1086,12 @@ bool CUser::IsPassHashed() const { return m_bPassHashed; }
bool CUser::ConnectPaused() {
if (!m_uConnectTime) {
m_uConnectTime = time(NULL);
return !m_bIRCConnectEnabled;
return false;
}
if (time(NULL) - m_uConnectTime >= 5) {
m_uConnectTime = time(NULL);
return !m_bIRCConnectEnabled;
return false;
}
return true;