diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-14 21:18:08 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-14 21:35:17 +0000 |
commit | beaf09de7bcb0042dfd8f388064126e511a5b28d (patch) | |
tree | ba14e1ff1ff96b5623c459b2de35d766d086e427 /data | |
parent | c8d8978cd0bfb10613da331c5b13bbcf8486f85f (diff) |
Rework sending global notices.
Admins can now queue multiple messages and send them when they are
ready. This is fully compatible with the previous global behaviour.
Admins can now also send messages to individual servers. This is
useful for informing users of maintenance due to downtime.
Diffstat (limited to 'data')
-rw-r--r-- | data/anope.example.conf | 2 | ||||
-rw-r--r-- | data/global.example.conf | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf index 80302a88f..6198c9776 100644 --- a/data/anope.example.conf +++ b/data/anope.example.conf @@ -789,7 +789,7 @@ log * * hostserv/set hostserv/del hostserv/list * - * global/global + * global/global global/queue global/server * * operserv/news operserv/stats operserv/kick operserv/exception operserv/seen * operserv/mode operserv/session operserv/modinfo operserv/ignore operserv/chanlist diff --git a/data/global.example.conf b/data/global.example.conf index d48fe0581..5b99f0178 100644 --- a/data/global.example.conf +++ b/data/global.example.conf @@ -113,3 +113,29 @@ command { service = "Global"; name = "HELP"; command = "generic/help"; } */ module { name = "gl_global" } command { service = "Global"; name = "GLOBAL"; command = "global/global"; permission = "global/global"; } + +/* + * gl_queue + * + * Provides the command global/queue. + * + * Used for queuing messages to send to every online user. + */ +module +{ + name = "gl_queue" + + /* The maximum number of messages in a message queue. Defaults to 10. */ + maxqueue = 10 +} +command { service = "Global"; name = "QUEUE"; command = "global/queue"; permission = "global/queue"; } + +/* + * gl_server + * + * Provides the command global/server. + * + * Used for sending a message to every online user on a server. + */ +module { name = "gl_server" } +command { service = "Global"; name = "SERVER"; command = "global/server"; permission = "global/server"; } |