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:
Uli Schlachter
2011-03-28 21:17:18 +02:00
parent f9ffe6f417
commit 000efa6be3
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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) {