summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 19:14:05 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-15 19:14:05 +0000
commit486097e27b7fc848a6abfc25c7e4547e4acf5a7b (patch)
tree822af53656503dc9e0a9e85e3c3ec301bd480978 /src/config.c
parent5fa7475f65cdf761233f463aae337b5b81dabf16 (diff)
Added expiretimeout directive to options block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1712 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index eeb9f96d3..c1b9ff204 100644
--- a/src/config.c
+++ b/src/config.c
@@ -90,7 +90,7 @@ bool StrictPasswords;
int BadPassLimit;
time_t BadPassTimeout;
time_t UpdateTimeout;
-int ExpireTimeout;
+time_t ExpireTimeout;
int ReadTimeout;
int WarningTimeout;
int TimeoutCheck;
@@ -643,6 +643,7 @@ int ServerConfig::Read(bool bail)
{"options", "badpasslimit", "0", new ValueContainerInt(&BadPassLimit), DT_INTEGER, NoValidation},
{"options", "badpasstimeout", "0", new ValueContainerTime(&BadPassTimeout), DT_TIME, NoValidation},
{"options", "updatetimeout", "0", new ValueContainerTime(&UpdateTimeout), DT_TIME, ValidateNotZero},
+ {"options", "expiretimeout", "0", new ValueContainerTime(&ExpireTimeout), 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},
@@ -1355,7 +1356,6 @@ bool ValueItem::GetBool()
Directive directives[] = {
{"DumpCore", {{PARAM_SET, 0, &DumpCore}}},
- {"ExpireTimeout", {{PARAM_TIME, PARAM_RELOAD, &ExpireTimeout}}},
{"ForceForbidReason", {{PARAM_SET, PARAM_RELOAD, &ForceForbidReason}}},
{"KeepBackups", {{PARAM_INT, PARAM_RELOAD, &KeepBackups}}},
{"KeepLogs", {{PARAM_INT, PARAM_RELOAD, &KeepLogs}}},
@@ -1701,7 +1701,6 @@ int read_config(int reload)
}
}
- CHECK(ExpireTimeout);
CHECK(ReadTimeout);
CHECK(WarningTimeout);
CHECK(TimeoutCheck);