diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 20:11:48 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 20:11:48 +0000 |
commit | 1ab50c14d52264c64645e24cc5a4736dc1fc2650 (patch) | |
tree | 3657d1a0154566da9d4914960751e835b72dc049 | |
parent | bb22925ccfaf2d9debe9db23e8dbef6443f2c605 (diff) |
Added sessionlimitexceeded directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1485 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 8 | ||||
-rw-r--r-- | src/config.c | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index ab923b3cd..264378bea 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -819,4 +819,12 @@ operserv * limiting is enabled. */ exceptionexpiry = 1d + + /* + * The message that will be NOTICE'd to a user just before they are removed from the network because + * their host's session limit has been exceeded. It may be used to give a slightly more descriptive + * reason for the impending kill as opposed to simply "Session limit exceeded". This directive is + * optional, if not set, nothing will be sent. + */ + sessionlimitexceeded = "The session limit for your host %s has been exceeded." } diff --git a/src/config.c b/src/config.c index c9d7c3852..e41487556 100644 --- a/src/config.c +++ b/src/config.c @@ -672,6 +672,7 @@ int ServerConfig::Read(bool bail) {"operserv", "defaultsessionlimit", "0", new ValueContainerInt(&DefSessionLimit), DT_INTEGER, NoValidation}, {"operserv", "maxsessionlimit", "0", new ValueContainerInt(&MaxSessionLimit), DT_INTEGER, ValidateLimitSessions}, {"operserv", "exceptionexpiry", "0", new ValueContainerTime(&ExceptionExpiry), DT_TIME, ValidateLimitSessions}, + {"operserv", "sessionlimitexceeded", "", new ValueContainerChar(&SessionLimitExceeded), DT_CHARPTR, NoValidation}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1323,8 +1324,6 @@ Directive directives[] = { {"SessionLimitDetailsLoc", {{PARAM_STRING, PARAM_RELOAD, &SessionLimitDetailsLoc}}}, {"OSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &OSOpersOnly}}}, - {"SessionLimitExceeded", - {{PARAM_STRING, PARAM_RELOAD, &SessionLimitExceeded}}}, {"SessionAutoKillExpiry", {{PARAM_TIME, PARAM_RELOAD, &SessionAutoKillExpiry}}}, {"HideStatsO", {{PARAM_SET, PARAM_RELOAD, &HideStatsO}}}, |