mirror of
https://github.com/znc/znc.git
synced 2026-08-02 15:03:16 +02:00
Don't try connecting users if the ISpoof is locked
This fixes various issues with slow connecting users. E.g. the users caused themselves to be added to the ConnectThrottle map even though they didn't actually try to connect. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -1989,6 +1989,11 @@ protected:
|
||||
const map<CString,CUser*>& mUsers = CZNC::Get().GetUserMap();
|
||||
map<CString,CUser*>::const_iterator it = mUsers.begin();
|
||||
|
||||
if (CZNC::Get().IsISpoofLocked()) {
|
||||
// Meh, gotta retry later
|
||||
return;
|
||||
}
|
||||
|
||||
uiUserCount = CZNC::Get().GetUserMap().size();
|
||||
|
||||
if (m_uiPosNextUser >= uiUserCount) {
|
||||
|
||||
Reference in New Issue
Block a user