From 29a074878d72f789f9a7eacb6b17e2e97b33fdd0 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Tue, 14 Oct 2008 03:43:33 +0000 Subject: [PATCH] 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 --- data/example_new.conf | 10 ++++++++++ src/config.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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}}},