From 495d5e534cacd4a0aade9c800c76a56430231a94 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sun, 26 Oct 2008 20:24:04 +0000 Subject: 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 --- src/config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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}}}, -- cgit