mod_muc_block_pm: Update to 0.12+ API, use roles instead of affiliations
The module was possibly broken with 0.12 before.
This changes the behavior to allow only messages to or from moderators.
---
summary: Prevent MUC participants from sending PMs
---
# Introduction
This module prevents *participants* from sending private messages to
anyone except *moderators*.
# Configuration
The module doesn't have any options, just load it onto a MUC component.
``` lua
Component "muc"
modules_enabled = {
"muc_block_pm";
}
```
# Compatibility
Branch State
-------- -----------------
0.11 Will **not** work
0.12 Should work