From db43487faff43bd28801b4661cd60285697b204e Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sat, 15 Nov 2008 20:39:20 +0000 Subject: Added forceforbidreason directive to options block in new config. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1721 5417fbe8-f217-4b02-8779-1006273d7864 --- src/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index cea517705..2f69b67b7 100644 --- a/src/config.c +++ b/src/config.c @@ -96,7 +96,7 @@ time_t WarningTimeout; time_t TimeoutCheck; int KeepLogs; int KeepBackups; -int ForceForbidReason; +bool ForceForbidReason; int UsePrivmsg; int UseStrictPrivMsg; int DumpCore; @@ -649,6 +649,7 @@ int ServerConfig::Read(bool bail) {"options", "timeoutcheck", "0", new ValueContainerTime(&TimeoutCheck), DT_TIME, NoValidation}, {"options", "keeplogs", "0", new ValueContainerInt(&KeepLogs), DT_INTEGER, NoValidation}, {"options", "keepbackups", "0", new ValueContainerInt(&KeepBackups), DT_INTEGER, NoValidation}, + {"options", "forceforbidreason", "no", new ValueContainerBool(&ForceForbidReason), DT_BOOLEAN, NoValidation}, {"nickserv", "nick", "NickServ", new ValueContainerChar(&s_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"nickserv", "description", "Nickname Registration Service", new ValueContainerChar(&desc_NickServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"nickserv", "database", "nick.db", new ValueContainerChar(&NickDBName), DT_CHARPTR, ValidateNotEmpty}, @@ -1361,7 +1362,6 @@ bool ValueItem::GetBool() Directive directives[] = { {"DumpCore", {{PARAM_SET, 0, &DumpCore}}}, - {"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}}, {"LocalAddress", {{PARAM_STRING, 0, &LocalHost}, {PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}}, {"LogUsers", {{PARAM_SET, PARAM_RELOAD, &LogUsers}}}, -- cgit