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:
1 parent
f9ffe6f417
commit
000efa6be3
2 files changed
+6
No files matched your search
@@ -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