File

mod_muc_activity/README.md @ 6146:dde2803f7678

mod_persisthosts: Retrieve hosts from config instead of Prosody state This should avoid missing hosts that are activated after the one this module was loaded from.
author Kim Alvefur <zash@zash.se>
date Fri, 10 Jan 2025 16:19:27 +0100
parent 6133:a0429c322454
line wrap: on
line source

---
summary: 'XEP-0502 (MUC Activity Indicator) implementation'
...

This module provides an implementation of [XEP-0502 (MUC Activity Indicator)](https://xmpp.org/extensions/xep-0502.html) for Prosody.

To enable it, load it on a MUC host, for example:

```lua
Component "chat.domain.example" "muc"
    modules_enabled = { "muc_activity" }
```

When this module is loaded, it will expose the average number of messages per hour for all public MUCs.
The number is calculated over a 24 hour window.

Note that this module may impact server performance on servers with many MUCs.