diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 82bd4904a..4176faedb 100644 --- a/src/config.c +++ b/src/config.c @@ -324,7 +324,7 @@ long unsigned int UserKey1; long unsigned int UserKey2; long unsigned int UserKey3; -int Numeric; +char *Numeric; int UnRestrictSAdmin; @@ -519,7 +519,7 @@ Directive directives[] = { {"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}}, {"NewsDB", {{PARAM_STRING, PARAM_RELOAD, &NewsDBName}}}, {"NickservDB", {{PARAM_STRING, PARAM_RELOAD, &NickDBName}}}, - {"Numeric", {{PARAM_POSINT, PARAM_RELOAD, &Numeric}}}, + {"Numeric", {{PARAM_STRING, PARAM_RELOAD, &Numeric}}}, {"PreNickServDB", {{PARAM_STRING, PARAM_RELOAD, &PreNickDBName}}}, {"NSEmailReg", {{PARAM_SET, PARAM_RELOAD, &NSEmailReg}}}, {"NickRegDelay", {{PARAM_POSINT, PARAM_RELOAD, &NickRegDelay}}}, @@ -1438,6 +1438,14 @@ int read_config(int reload) } } + if (UseTS6 && ircd->ts6) { + if (!Numeric) { + error(0, + "UseTS6 requires the setting of Numeric to be enabled."); + retval = 0; + } + } + /** * If they try to enable any email registration option, * make sure they have everything else they need too... |