mirror of
https://github.com/znc/znc.git
synced 2026-06-27 13:31:32 +02:00
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:
@@ -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 + "]");
|
||||
|
||||
Reference in New Issue
Block a user