diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 21:55:06 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 21:55:06 +0000 |
commit | 766e04808e3ff1fc30fc1cb04e236e302e7ae289 (patch) | |
tree | 16c8ea736bb849eba7495794b5ba52f2c1b1d573 | |
parent | 5136d4c41540e40cd8e0244763f6bcfabb55ed0d (diff) |
Added database directive to chanserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1431 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 6 | ||||
-rw-r--r-- | src/config.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index f339f88fd..fcb650ec8 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -331,4 +331,10 @@ chanserv * name) of the client. */ description = "Channel Registration Service" + + /* + * The filename of the ChanServ database. The path is relative to the services + * executable. If not given, defaults to "chan.db". + */ + database = "chan.db" } diff --git a/src/config.c b/src/config.c index b6e8c6d96..1322aae44 100644 --- a/src/config.c +++ b/src/config.c @@ -586,6 +586,7 @@ int ServerConfig::Read(bool bail) {"nickserv", "addaccessonreg", "no", new ValueContainerBool(&NSAddAccessOnReg), DT_BOOLEAN, NoValidation}, {"chanserv", "nick", "ChanServ", new ValueContainerChar(&s_ChanServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"chanserv", "description", "Channel Registration Service", new ValueContainerChar(&desc_ChanServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, + {"chanserv", "database", "chan.db", new ValueContainerChar(&ChanDBName), 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 @@ -1187,7 +1188,6 @@ Directive directives[] = { {"HostServName", {{PARAM_STRING, 0, &s_HostServ}, {PARAM_STRING, 0, &desc_HostServ}}}, {"ChanCoreModules", {{PARAM_STRING, PARAM_RELOAD, &ChanCoreModules}}}, - {"ChanServDB", {{PARAM_STRING, PARAM_RELOAD, &ChanDBName}}}, {"CSAccessMax", {{PARAM_POSINT, PARAM_RELOAD, &CSAccessMax}}}, {"CSAutokickMax", {{PARAM_POSINT, PARAM_RELOAD, &CSAutokickMax}}}, {"CSAutokickReason", @@ -1703,7 +1703,6 @@ int read_config(int reload) CHEK2(MOTDFilename, MOTDFile); if (!reload) { - CHEK2(ChanDBName, ChanServDB); CHEK2(OperDBName, OperServDB); CHEK2(NewsDBName, NewsDB); CHEK2(ExceptionDBName, ExceptionDB); |