1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 03:43:12 +02:00

Added notifyall directive to memoserv block in new config.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1447 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-14 03:41:36 +00:00
parent 523ed6dd70
commit 1acf87b4f0
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -469,4 +469,11 @@ memoserv
* recommended.
*/
senddelay = 3s
/*
* Should we notify all appropriate users of a new memo? This applies in cases where a memo is
* sent to a nick which is in the group of another nick. Not that, unlike before, it is currently
* more efficient to enable this. This directive is optional.
*/
notifyall = yes
}
+1 -1
View File
@@ -356,7 +356,7 @@ E bool CSOpersOnly;
E int MSMaxMemos;
E time_t MSSendDelay;
E int MSNotifyAll;
E bool MSNotifyAll;
E int MSMemoReceipt;
E int BSDefFlags;
+2 -2
View File
@@ -158,7 +158,7 @@ bool CSOpersOnly;
int MSMaxMemos;
time_t MSSendDelay;
int MSNotifyAll;
bool MSNotifyAll;
int MSMemoReceipt;
int BSDefDontKickOps;
@@ -598,6 +598,7 @@ int ServerConfig::Read(bool bail)
{"memoserv", "description", "Memo Service", new ValueContainerChar(&desc_MemoServ), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty},
{"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},
{NULL, NULL, NULL, NULL, DT_NOTHING, NoValidation}
};
/* These tags can occur multiple times, and therefore they have special code to read them
@@ -1262,7 +1263,6 @@ Directive directives[] = {
{"ModuleDelayedAutoload",
{{PARAM_STRING, PARAM_RELOAD, &ModulesDelayed}}},
{"MOTDFile", {{PARAM_STRING, PARAM_RELOAD, &MOTDFilename}}},
{"MSNotifyAll", {{PARAM_SET, PARAM_RELOAD, &MSNotifyAll}}},
{"MSMemoReceipt", {{PARAM_POSINT, PARAM_RELOAD, &MSMemoReceipt}}},
{"NetworkName", {{PARAM_STRING, PARAM_RELOAD, &NetworkName}}},
{"NewsCount", {{PARAM_POSINT, PARAM_RELOAD, &NewsCount}}},