Add a config option 'MaxJoins' to limit the number of joins ZNC does at once

This should hopefully fix a couple of 'Excess flood' problems we were having.

Thanks to SilverLeo for finally writing this :P


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1177 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-08-29 15:06:08 +00:00
parent 5c588352d9
commit da8c892d4f
4 changed files with 14 additions and 4 deletions
+3
View File
@@ -1278,6 +1278,9 @@ bool CZNC::DoRehash(CString& sError)
} else if (sName.CaseCmp("JoinTries") == 0) {
pUser->SetJoinTries(sValue.ToUInt());
continue;
} else if (sName.CaseCmp("MaxJoins") == 0) {
pUser->SetMaxJoins(sValue.ToUInt());
continue;
} else if (sName.CaseCmp("LoadModule") == 0) {
CString sModName = sValue.Token(0);
CUtils::PrintAction("Loading Module [" + sModName + "]");