mirror of
https://github.com/znc/znc.git
synced 2026-05-05 13:02:31 +02:00
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:
4
User.cpp
4
User.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user