This module strips XEP-0224 Attention for certain affiliations in rooms. It adds a room configuration option to strip it from members, so that only admins and higher can use it. A default setting for all rooms can be set in the config file. This can be overwritten per room. With this module loaded, unaffiliated users won’t ever be allowed to use Attention.
This can prevent spam and noise in clients that don’t have precautions against this in place.
Component "rooms.example.net" "muc"
modules_enabled = {
"muc_restrict_attention";
}A default setting can be provided in the config file, defaults to true. A loglevel can be set (debug, info, warn, error). Defaults to debug:
muc_restrict_attention_from_members = true
muc_restrict_attention_loglevel = "debug"Work with Prosody >= 13.0
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_muc_restrict_attention
For earlier versions see the documentation for installing 3rd party modules