diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 22:57:24 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 22:57:24 +0000 |
commit | 692be8526cf49f3bb277305303de34368ca3664e (patch) | |
tree | 0ca99269e86b006d2cbac4359ad0cccfcfdce9c0 | |
parent | c4a8ddaa24fc6f5ff8b4a72ac797a93aff6f997e (diff) |
Added accessmax directive to chanserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1436 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 5 | ||||
-rw-r--r-- | src/config.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index 5c3bbff2d..eed829c55 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -390,4 +390,9 @@ chanserv * 3: ban in the form of *!*user@*.domain */ defbantype = 2 + + /* + * The maximum number of entries on a channel's access list. + */ + accessmax = 1024 } diff --git a/src/config.c b/src/config.c index beebbead5..77cf4f049 100644 --- a/src/config.c +++ b/src/config.c @@ -586,6 +586,7 @@ int ServerConfig::Read(bool bail) {"chanserv", "maxregistered", "0", new ValueContainerInt(&CSMaxReg), DT_INTEGER, NoValidation}, {"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}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1187,7 +1188,6 @@ Directive directives[] = { {"HostServName", {{PARAM_STRING, 0, &s_HostServ}, {PARAM_STRING, 0, &desc_HostServ}}}, {"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}}, - {"CSAccessMax", {{PARAM_POSINT, PARAM_RELOAD, &CSAccessMax}}}, {"CSAutokickMax", {{PARAM_POSINT, PARAM_RELOAD, &CSAutokickMax}}}, {"CSAutokickReason", {{PARAM_STRING, PARAM_RELOAD, &CSAutokickReason}}}, @@ -1693,7 +1693,6 @@ int read_config(int reload) CHECK(ReadTimeout); CHECK(WarningTimeout); CHECK(TimeoutCheck); - CHECK(CSAccessMax); CHECK(CSAutokickMax); CHECK(CSAutokickReason); CHECK(CSInhabit); |