diff options
-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}}}, |