peertube-plugin-livechat/prosody-modules/mod_muc_peertubelivechat_terms
John Livingston 9b1f24eafe
Terms&Conditions fixes:
* adding hints (no-store, no-copy) on xmpp messages
* frontend will ignore any archived message
2024-07-05 14:57:59 +02:00
..
mod_muc_peertubelivechat_terms.lua Terms&Conditions fixes: 2024-07-05 14:57:59 +02:00
README.md

mod_muc_peertubelivechat_terms

This module is a custom module to handle Terms&Conditions in the livechat Peertube plugin.

This module is part of peertube-plugin-livechat, and is under the same LICENSE.

Features

When a new occupant session is created for a MUC, this module will send to the user the global terms, and the MUC-specific terms (if defined).

This is done by sending groupchat messages. These messages will contain a "x-livechat-terms" tag, so that livechat front-end can detect these messages, and display them differently. For standard XMPP clients, these messages will show as standard MUC message coming from a specific nickname.

Configuration

This modules take following options.

muc_terms_service_nickname

The nickname that will be used by service messages. This module reserves the nickname, so than nobody can use it in MUC rooms (we don't want any user to spoof this nickname).

muc_terms_global

The global terms.