summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 19:14:43 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 19:14:43 +0000
commit2e9f890978b6123708d3e66c0162b8f64b4b177f (patch)
tree37b31a35e3ccd1ae9f1f75c4024c5f382721580f /src
parent4ed52553b0ccf4db05bfe213a26df69ac3a588d2 (diff)
Added warningtimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1714 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index a3bbe92b4..ad58682b2 100644
--- a/src/config.c
+++ b/src/config.c
@@ -92,7 +92,7 @@ time_t BadPassTimeout;
time_t UpdateTimeout;
time_t ExpireTimeout;
time_t ReadTimeout;
-int WarningTimeout;
+time_t WarningTimeout;
int TimeoutCheck;
int KeepLogs;
int KeepBackups;
@@ -645,6 +645,7 @@ int ServerConfig::Read(bool bail)
{"options", "updatetimeout", "0", new ValueContainerTime(&UpdateTimeout), DT_TIME, ValidateNotZero},
{"options", "expiretimeout", "0", new ValueContainerTime(&ExpireTimeout), DT_TIME, ValidateNotZero},
{"options", "readtimeout", "0", new ValueContainerTime(&ReadTimeout), DT_TIME, ValidateNotZero},
+ {"options", "warningtimeout", "0", new ValueContainerTime(&WarningTimeout), DT_TIME, ValidateNotZero},
{"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},
@@ -1394,7 +1395,6 @@ Directive directives[] = {
{"UseSVSHOLD", {{PARAM_SET, PARAM_RELOAD, &UseSVSHOLD}}},
{"UseTS6", {{PARAM_SET, 0, &UseTS6}}},
{"UnRestrictSAdmin", {{PARAM_SET, PARAM_RELOAD, &UnRestrictSAdmin}}},
- {"WarningTimeout", {{PARAM_TIME, PARAM_RELOAD, &WarningTimeout}}},
{"UlineServers", {{PARAM_STRING, PARAM_RELOAD, &UlineServers}}},
};
@@ -1701,7 +1701,6 @@ int read_config(int reload)
}
}
- CHECK(WarningTimeout);
CHECK(TimeoutCheck);
if (temp_nsuserhost) {