Mercurial > prosody-modules
view mod_discoitems/README.markdown @ 5536:96dec7681af8
mod_firewall: Update user marks to store instantly via map store
The original approach was to keep marks in memory only, and persist them at
shutdown. That saves I/O, at the cost of potentially losing marks on an
unclean shutdown.
This change persists marks instantly, which may have some performance overhead
but should be more "correct".
It also splits the marking/unmarking into an event which may be watched or
even fired by other modules.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 08 Jun 2023 16:20:42 +0100 |
parents | 4d73a1a6ba68 |
children |
line wrap: on
line source
--- labels: - 'Stage-Beta' summary: Manually override the list of service discovery items ... Introduction ============ This Prosody plugin lets you manually override the service discovery items for a host. Usage ===== Simply add `"discoitems"` to your modules\_enabled list. Then add the `disco_items` option to hosts for which you wish to override the default response. Note: mod\_disco in Prosody 0.8+ supports the `disco_items` option; this plugin changes the behavior from appending items to replacing items Configuration ============= The `disco_items` option can be added to relevant hosts: disco_items = { {"proxy.eu.jabber.org", "Jabber.org SOCKS5 service"}; {"conference.jabber.org", "The Jabber.org MUC"}; } The format for individual items is `{JID, display-name}`. The display-name can be omitted: `{JID}`. Compatibility ============= ----- ------------- 0.8 Works 0.7 Works 0.6 Works 0.5 Should work ----- -------------