mirror of
https://github.com/znc/znc.git
synced 2026-08-05 08:23:12 +02:00
Add JoinTries config var which sets a limit for channel join tries to avoid
flood issues. This var defaults to 0 which means 'No Limit'. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@811 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -1028,6 +1028,9 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
} else if (sName.CaseCmp("TimezoneOffset") == 0) {
|
||||
pUser->SetTimezoneOffset(sValue.ToDouble()); // there is no ToFloat()
|
||||
continue;
|
||||
} else if (sName.CaseCmp("JoinTries") == 0) {
|
||||
pUser->SetJoinTries(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