diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-23 02:22:29 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-23 02:22:29 +0000 |
commit | c77dbdc9977c0369347244792a910f9ededac2e6 (patch) | |
tree | 5af16ea6f6247e8d5b89f22e5b2d62a9d26bd6f1 | |
parent | 3533152b406ce640104e356373b90a624f5119d3 (diff) |
Added hostsetters directive to hostserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1463 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 10 | ||||
-rw-r--r-- | src/config.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index d4a7e4c57..ea27938af 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -606,4 +606,14 @@ hostserv * executable. If not given, defaults to "hosts.db". */ database = "hosts.db" + + /* + * Specifies the nicks of NON-OPERS allowed to set or remove vHosts using HostServ. Can be re-loaded + * with /msg operserv reload. You can specify more than one nick by separating each one by a space. + * + * This directive is optional, but you are discouraged from using it. It is recommended that you only + * give opers the ability to set or remove vHosts by making them Services Opers or higher, but if you + * do decide to use this directive, make sure you insert the correct nick(s) here. + */ + #hostsetters = "CyberBotX w00t" } diff --git a/src/config.c b/src/config.c index 2e1a2d26a..7268a4529 100644 --- a/src/config.c +++ b/src/config.c @@ -82,7 +82,7 @@ char *OperDBName; char *AutokillDBName; char *NewsDBName; -char *HostSetter; +static char *HostSetter; char **HostSetters; int HostNumber = 0; /* needs to be set to 0 */ @@ -633,6 +633,7 @@ int ServerConfig::Read(bool bail) {"hostserv", "nick", "", new ValueContainerChar(&s_HostServ), DT_CHARPTR, NoValidation}, {"hostserv", "description", "vHost Service", new ValueContainerChar(&desc_HostServ), DT_CHARPTR, ValidateHostServ}, {"hostserv", "database", "hosts.db", new ValueContainerChar(&HostDBName), DT_CHARPTR, ValidateHostServ}, + {"hostserv", "hostsetters", "", new ValueContainerChar(&HostSetter), DT_CHARPTR, NoValidation}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1243,7 +1244,6 @@ Directive directives[] = { {"HelpCoreModules", {{PARAM_STRING, PARAM_RELOAD, &HelpCoreModules}}}, {"HelpChannel", {{PARAM_STRING, PARAM_RELOAD, &HelpChannel}}}, {"HostCoreModules", {{PARAM_STRING, PARAM_RELOAD, &HostCoreModules}}}, - {"HostSetters", {{PARAM_STRING, PARAM_RELOAD, &HostSetter}}}, {"LogChannel", {{PARAM_STRING, PARAM_RELOAD, &LogChannel}}}, {"LogBot", {{PARAM_SET, PARAM_RELOAD, &LogBot}}}, {"HelpServName", {{PARAM_STRING, 0, &s_HelpServ}, |