* changing delay by duration for slow mode options
* better labels
This commit is contained in:
John Livingston
2024-02-16 15:16:44 +01:00
parent 1e876ec43c
commit 3d9237624d
13 changed files with 60 additions and 57 deletions

View File

@ -12,12 +12,12 @@ Just enable the module on your MUC component.
The feature will be accessible throught the room configuration form.
Depending on your application, it is possible that the slow mode is more important than other fields (for example for a video streaming service).
The position in the room config form can be changed be setting the option `slow_mode_delay_form_position`.
The position in the room config form can be changed be setting the option `slow_mode_duration_form_position`.
This value will be passed as priority for the "muc-config-form" hook.
By default, the field will be between muc#roomconfig_changesubject and muc#roomconfig_moderatedroom.
``` lua
VirtualHost "muc.example.com"
modules_enabled = { "muc_slow_mode" }
slow_mode_delay_form_position = 96
slow_mode_duration_form_position = 96
```