diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-14 03:43:33 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-14 03:43:33 +0000 |
commit | 29a074878d72f789f9a7eacb6b17e2e97b33fdd0 (patch) | |
tree | f53ecde08269af382072e31bb57f2c8153bb1f4f | |
parent | 1acf87b4f028097d63efa79d5502f0a8cf7203b8 (diff) |
Added memoreceipt directive to memoserv block in new config.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1448 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | data/example_new.conf | 10 | ||||
-rw-r--r-- | src/config.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/data/example_new.conf b/data/example_new.conf index f02602672..d341edbdc 100644 --- a/data/example_new.conf +++ b/data/example_new.conf @@ -476,4 +476,14 @@ memoserv * more efficient to enable this. This directive is optional. */ notifyall = yes + + /* + * Allow the use of memo receipts for the following groups: + * + * 1 - Opers Only + * 2 - Everybody + * + * This directive is optional. + */ + #memoreceipt = 1 } diff --git a/src/config.c b/src/config.c index e7bb72ee8..2b2613653 100644 --- a/src/config.c +++ b/src/config.c @@ -599,6 +599,7 @@ int ServerConfig::Read(bool bail) {"memoserv", "maxmemos", "0", new ValueContainerInt(&MSMaxMemos), DT_INTEGER, NoValidation}, {"memoserv", "senddelay", "0", new ValueContainerTime(&MSSendDelay), DT_TIME, NoValidation}, {"memoserv", "notifyall", "no", new ValueContainerBool(&MSNotifyAll), DT_BOOLEAN, NoValidation}, + {"memoserv", "memoreceipt", "0", new ValueContainerInt(&MSMemoReceipt), DT_INTEGER, NoValidation}, {NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation} }; /* These tags can occur multiple times, and therefore they have special code to read them @@ -1263,7 +1264,6 @@ Directive directives[] = { {"ModuleDelayedAutoload", {{PARAM_STRING, PARAM_RELOAD, &ModulesDelayed}}}, {"MOTDFile", {{PARAM_STRING, PARAM_RELOAD, &MOTDFilename}}}, - {"MSMemoReceipt", {{PARAM_POSINT, PARAM_RELOAD, &MSMemoReceipt}}}, {"NetworkName", {{PARAM_STRING, PARAM_RELOAD, &NetworkName}}}, {"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}}, {"NewsDB", {{PARAM_STRING, PARAM_RELOAD, &NewsDBName}}}, |