diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 20:24:04 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-26 20:24:04 +0000 |
commit | 495d5e534cacd4a0aade9c800c76a56430231a94 (patch) | |
tree | ba102a598106c2bcd7a47444119d890c36a3cfb7 /src | |
parent | d908d37ada94d5cc4aa9644c1e3f032ac6cf7351 (diff) |
Added sessionautokillexpiry directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1488 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c index 3e979370f..33e61fbdc 100644 --- a/src/config.c +++ b/src/config.c @@ -222,7 +222,7 @@ int DefSessionLimit; time_t ExceptionExpiry; int MaxSessionKill; int MaxSessionLimit; -int SessionAutoKillExpiry; +time_t SessionAutoKillExpiry; char *ExceptionDBName; char *SessionLimitExceeded; char *SessionLimitDetailsLoc; @@ -675,6 +675,7 @@ int ServerConfig::Read(bool bail) {"operserv", "sessionlimitexceeded", "", new ValueContainerChar(&SessionLimitExceeded), DT_CHARPTR, NoValidation}, {"operserv", "sessionlimitdetailsloc", "", new ValueContainerChar(&SessionLimitDetailsLoc), DT_CHARPTR, NoValidation}, {"operserv", "maxsessionkill", "0", new ValueContainerInt(&MaxSessionKill), DT_INTEGER, NoValidation}, + {"operserv", "sessionautokillexpiry", "0", new ValueContainerTime(&SessionAutoKillExpiry), DT_TIME, 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[] = { {"ServerName", {{PARAM_STRING, 0, &ServerName}}}, {"ServiceUser", {{PARAM_STRING, 0, &temp_userhost}}}, {"OSOpersOnly", {{PARAM_SET, PARAM_RELOAD, &OSOpersOnly}}}, - {"SessionAutoKillExpiry", - {{PARAM_TIME, PARAM_RELOAD, &SessionAutoKillExpiry}}}, {"HideStatsO", {{PARAM_SET, PARAM_RELOAD, &HideStatsO}}}, {"GlobalOnCycle", {{PARAM_SET, PARAM_RELOAD, &GlobalOnCycle}}}, {"AnonymousGlobal", {{PARAM_SET, PARAM_RELOAD, &AnonymousGlobal}}}, |