diff options
-rw-r--r-- | data/example_new.conf | 7 | ||||
-rw-r--r-- | src/config.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index e3f78a196..7762592b4 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -684,4 +684,11 @@ operserv * executable. If not given, defaults to "exception.db". */ exceptiondatabase = "exception.db" + + /* + * The filename of OperServ's Autokill database. The path is relative to the services + * executable. If not given, defaults to "akill.db". OperServ no longer uses this file, and + * this directive is only provided for importing an old OperServ database. + */ + #autokilldatabase = "akill.db" } diff --git a/src/config.c b/src/config.c index 1c582d691..c8a640d50 100644 --- a/src/config.c +++ b/src/config.c @@ -643,6 +643,7 @@ int ServerConfig::Read(bool bail) {"operserv", "database", "oper.db", new ValueContainerChar(&OperDBName), DT_CHARPTR, ValidateNotEmpty}, {"operserv", "newsdatabase", "news.db", new ValueContainerChar(&NewsDBName), DT_CHARPTR, ValidateNotEmpty}, {"operserv", "exceptiondatabase", "exception.db", new ValueContainerChar(&ExceptionDBName), DT_CHARPTR, ValidateNotEmpty}, + {"operserv", "autokilldatabase", "akill.db", new ValueContainerChar(&AutokillDBName), DT_CHARPTR, ValidateNotEmpty}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1217,7 +1218,6 @@ bool ValueItem::GetBool() Directive directives[] = { {"AkillOnAdd", {{PARAM_SET, PARAM_RELOAD, &AkillOnAdd}}}, - {"AutokillDB", {{PARAM_STRING, PARAM_RELOAD, &AutokillDBName}}}, {"AutokillExpiry", {{PARAM_TIME, PARAM_RELOAD, &AutokillExpiry}}}, {"ChankillExpiry", {{PARAM_TIME, PARAM_RELOAD, &ChankillExpiry}}}, {"BadPassLimit", {{PARAM_POSINT, PARAM_RELOAD, &BadPassLimit}}}, |