summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-14 03:41:36 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-14 03:41:36 +0000
commit1acf87b4f028097d63efa79d5502f0a8cf7203b8 (patch)
tree33ba8ccd96c2aaee6df671f1a642e19bd2fbf9c2
parent523ed6dd706b13780e32becf54406e1687b62ecb (diff)
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
-rw-r--r--data/example_new.conf7
-rw-r--r--include/extern.h2
-rw-r--r--src/config.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/data/example_new.conf b/data/example_new.conf
index 460709ca0..f02602672 100644
--- a/data/example_new.conf
+++ b/data/example_new.conf
@@ -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
}
diff --git a/include/extern.h b/include/extern.h
index 3870dee09..70c8b2620 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -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;
diff --git a/src/config.c b/src/config.c
index b27cab2e3..e7bb72ee8 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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}}},