diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-14 03:32:13 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-14 03:32:13 +0000 |
commit | 5406aeecd067ec921372a1b53119d1ee4a2dd34f (patch) | |
tree | b8583781a255484a6fb2bc7573679e4bf8285837 | |
parent | a2c896c7750f7ee4699e30bd510eceb267eda791 (diff) |
Started memoserv block in new config, added nick and description directives to it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1444 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 20 | ||||
-rw-r--r-- | src/config.c | 5 |
2 files changed, 22 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index 7e640f199..fb5b5d697 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -433,3 +433,23 @@ chanserv */ #opersonly = yes } + +/* + * [REQUIRED] MemoServ Config + * + * This section is used to set up the Memo Service pseudo-client. Unless specified otherwise, + * all directives are required. + */ +memoserv +{ + /* + * The nickname of the MemoServ client. + */ + nick = "MemoServ" + + /* + * The description of the MemoServ client, which will be used as the GECOS (real + * name) of the client. + */ + description = "Memo Service" +} diff --git a/src/config.c b/src/config.c index 22c4bd862..0d32cc09e 100644 --- a/src/config.c +++ b/src/config.c @@ -594,6 +594,8 @@ int ServerConfig::Read(bool bail) {"chanserv", "listmax", "0", new ValueContainerInt(&CSListMax), DT_INTEGER, ValidateNotZero}, {"chanserv", "restrictgetpass", "no", new ValueContainerBool(&CSRestrictGetPass), DT_BOOLEAN, NoValidation}, {"chanserv", "opersonly", "no", new ValueContainerBool(&CSOpersOnly), DT_BOOLEAN, NoValidation}, + {"memoserv", "nick", "MemoServ", new ValueContainerChar(&s_MemoServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, + {"memoserv", "description", "Memo Service", new ValueContainerChar(&desc_MemoServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1244,8 +1246,6 @@ Directive directives[] = { {"MaxSessionKill", {{PARAM_INT, PARAM_RELOAD, &MaxSessionKill}}}, {"MaxSessionLimit", {{PARAM_POSINT, PARAM_RELOAD, &MaxSessionLimit}}}, {"MemoCoreModules", {{PARAM_STRING, PARAM_RELOAD, &MemoCoreModules}}}, - {"MemoServName", {{PARAM_STRING, 0, &s_MemoServ}, - {PARAM_STRING, 0, &desc_MemoServ}}}, {"MysqlHost", {{PARAM_STRING, PARAM_RELOAD, &MysqlHost}}}, {"MysqlUser", {{PARAM_STRING, PARAM_RELOAD, &MysqlUser}}}, {"MysqlPass", {{PARAM_STRING, PARAM_RELOAD, &MysqlPass}}}, @@ -1674,7 +1674,6 @@ int read_config(int reload) CHECK(NetworkName); if (!reload) { CHEK2(temp_userhost, ServiceUser); - CHEK2(s_MemoServ, MemoServName); CHEK2(s_HelpServ, HelpServName); CHEK2(s_OperServ, OperServName); CHEK2(s_GlobalNoticer, GlobalName); |