From aa58a569e28e00c8a097d41c838c3ac13cce54ed Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Mon, 13 Oct 2008 23:02:16 +0000 Subject: [PATCH] Added autokickmax directive to chanserv block in new config. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1437 5417fbe8-f217-4b02-8779-1006273d7864 --- data/example_new.conf | 5 +++++ src/config.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/example_new.conf b/data/example_new.conf index eed829c55..705879b78 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -395,4 +395,9 @@ chanserv * The maximum number of entries on a channel's access list. */ accessmax = 1024 + + /* + * The maximum number of entries on a channel's autokick list. + */ + autokickmax = 32 } diff --git a/src/config.c b/src/config.c index 77cf4f049..2d069bb5c 100644 --- a/src/config.c +++ b/src/config.c @@ -587,6 +587,7 @@ int ServerConfig::Read(bool bail) {"chanserv", "expire", "14d", new ValueContainerTime(&CSExpire), DT_TIME, NoValidation}, {"chanserv", "defbantype", "2", new ValueContainerInt(&CSDefBantype), DT_INTEGER, ValidateBantype}, {"chanserv", "accessmax", "0", new ValueContainerInt(&CSAccessMax), DT_INTEGER, ValidateNotZero}, + {"chanserv", "autokickmax", "0", new ValueContainerInt(&CSAutokickMax), DT_INTEGER, ValidateNotZero}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1188,7 +1189,6 @@ Directive directives[] = { {"HostServName", {{PARAM_STRING, 0, &s_HostServ}, {PARAM_STRING, 0, &desc_HostServ}}}, {"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}}, - {"CSAutokickMax", {{PARAM_POSINT, PARAM_RELOAD, &CSAutokickMax}}}, {"CSAutokickReason", {{PARAM_STRING, PARAM_RELOAD, &CSAutokickReason}}}, {"CSInhabit", {{PARAM_TIME, PARAM_RELOAD, &CSInhabit}}}, @@ -1693,7 +1693,6 @@ int read_config(int reload) CHECK(ReadTimeout); CHECK(WarningTimeout); CHECK(TimeoutCheck); - CHECK(CSAutokickMax); CHECK(CSAutokickReason); CHECK(CSInhabit); CHECK(CSListMax);