summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/example_new.conf5
-rw-r--r--src/config.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index 0e46b85e5..7cc2cdb0c 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -416,4 +416,9 @@ chanserv
* Limits the use of the ChanServ LIST command to IRC operators. This directive is optional.
*/
#listopersonly = yes
+
+ /*
+ * The maximum number of channels to be returned for a ChanServ LIST command.
+ */
+ listmax = 50
}
diff --git a/src/config.c b/src/config.c
index bb9fb1d1d..983fd16fa 100644
--- a/src/config.c
+++ b/src/config.c
@@ -591,6 +591,7 @@ int ServerConfig::Read(bool bail)
{"chanserv", "autokickreason", "User has been banned from the channel", new ValueContainerChar(&CSAutokickReason), DT_CHARPTR, ValidateNotEmpty},
{"chanserv", "inhabit", "0", new ValueContainerTime(&CSInhabit), DT_TIME, ValidateNotZero},
{"chanserv", "listopersonly", "no", new ValueContainerBool(&CSListOpersOnly), DT_BOOLEAN, NoValidation},
+ {"chanserv", "listmax", "0", new ValueContainerInt(&CSListMax), 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
@@ -1192,7 +1193,6 @@ Directive directives[] = {
{"HostServName", {{PARAM_STRING, 0, &s_HostServ},
{PARAM_STRING, 0, &desc_HostServ}}},
{"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}},
- {"CSListMax", {{PARAM_POSINT, PARAM_RELOAD, &CSListMax}}},
{"CSRestrictGetPass", {{PARAM_SET, PARAM_RELOAD, &CSRestrictGetPass}}},
{"CSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &CSOpersOnly}}},
{"DefSessionLimit", {{PARAM_POSINT, 0, &DefSessionLimit}}},
@@ -1692,7 +1692,6 @@ int read_config(int reload)
CHECK(ReadTimeout);
CHECK(WarningTimeout);
CHECK(TimeoutCheck);
- CHECK(CSListMax);
CHECK(ServicesRoot);
CHECK(AutokillExpiry);
CHECK(ChankillExpiry);