summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-25 02:34:44 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-25 02:34:44 +0000
commit5fb96a196789a4457c664bfd169c5d0fe02b6e24 (patch)
tree59de7ca37268fbd8f2c42e11303d32daa5c8b665
parent9dd9bac13855cfe5e1ce74b29174a38a5dc1a5b3 (diff)
Added database directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1468 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--data/example_new.conf6
-rw-r--r--src/config.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index f264f6bb4..3c68a826a 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -666,4 +666,10 @@ operserv
* name) of the client.
*/
globaldescription = "Global Noticer"
+
+ /*
+ * The filename of the OperServ database. The path is relative to the services
+ * executable. If not given, defaults to "oper.db".
+ */
+ database = "oper.db"
}
diff --git a/src/config.c b/src/config.c
index 8f4e0b955..59982f43b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -640,6 +640,7 @@ int ServerConfig::Read(bool bail)
{"operserv", "description", "Operator Service", new ValueContainerChar(&desc_OperServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"operserv", "globalnick", "Global", new ValueContainerChar(&s_GlobalNoticer), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"operserv", "globaldescription", "Global Noticer", new ValueContainerChar(&desc_GlobalNoticer), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
+ {"operserv", "database", "oper.db", new ValueContainerChar(&OperDBName), 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
@@ -1288,7 +1289,6 @@ Directive directives[] = {
{"NickRegDelay", {{PARAM_POSINT, PARAM_RELOAD, &NickRegDelay}}},
{"NoBackupOkay", {{PARAM_SET, PARAM_RELOAD, &NoBackupOkay}}},
{"OperCoreModules", {{PARAM_STRING, PARAM_RELOAD, &OperCoreModules}}},
- {"OperServDB", {{PARAM_STRING, PARAM_RELOAD, &OperDBName}}},
{"PIDFile", {{PARAM_STRING, 0, &PIDFilename}}},
{"ReadTimeout", {{PARAM_TIME, PARAM_RELOAD, &ReadTimeout}}},
{"RemoteServer2", {{PARAM_STRING, 0, &RemoteServer2},
@@ -1692,7 +1692,6 @@ int read_config(int reload)
CHEK2(MOTDFilename, MOTDFile);
if (!reload) {
- CHEK2(OperDBName, OperServDB);
CHEK2(NewsDBName, NewsDB);
CHEK2(ExceptionDBName, ExceptionDB);
}