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:36:23 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-25 02:36:23 +0000
commitde6500e6975669eb8cd999984dac005581209a2f (patch)
treebf514d9e4fdecc14ac823288ce79fd0b1de670b7
parent5fb96a196789a4457c664bfd169c5d0fe02b6e24 (diff)
Added newsdatabase directive to operserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1469 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 3c68a826a..d515fd22d 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -672,4 +672,10 @@ operserv
* executable. If not given, defaults to "oper.db".
*/
database = "oper.db"
+
+ /*
+ * The filename of OperServ's News database. The path is relative to the services
+ * executable. If not given, defaults to "news.db".
+ */
+ newsdatabase = "news.db"
}
diff --git a/src/config.c b/src/config.c
index 59982f43b..1861e361d 100644
--- a/src/config.c
+++ b/src/config.c
@@ -641,6 +641,7 @@ int ServerConfig::Read(bool bail)
{"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},
+ {"operserv", "newsdatabase", "news.db", new ValueContainerChar(&NewsDBName), 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
@@ -1282,7 +1283,6 @@ Directive directives[] = {
{"MOTDFile", {{PARAM_STRING, PARAM_RELOAD, &MOTDFilename}}},
{"NetworkName", {{PARAM_STRING, PARAM_RELOAD, &NetworkName}}},
{"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}},
- {"NewsDB", {{PARAM_STRING, PARAM_RELOAD, &NewsDBName}}},
{"NickLen", {{PARAM_POSINT, 0, &NickLen}}},
{"Numeric", {{PARAM_STRING, PARAM_RELOAD, &Numeric}}},
{"NickCoreModules", {{PARAM_STRING, PARAM_RELOAD, &NickCoreModules}}},
@@ -1692,7 +1692,6 @@ int read_config(int reload)
CHEK2(MOTDFilename, MOTDFile);
if (!reload) {
- CHEK2(NewsDBName, NewsDB);
CHEK2(ExceptionDBName, ExceptionDB);
}
CHECK(UpdateTimeout);