---
summary: Strip XEP-0224 Attention from unaffiliated users in rooms
labels:
- Stage-Beta
...

# Introduction

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.

# Configuring

## Enabling

``` {.lua}
Component "rooms.example.net" "muc"
modules_enabled = {
    "muc_restrict_attention";
}
```

## Settings

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*: 

``` {.lua}
muc_restrict_attention_from_members = true
muc_restrict_attention_loglevel = "debug"
```

# Todo

- Restrict fine tuned, per every affiliation.

# Compatibility

Work with Prosody >= 13.0
