Fix mod_muc_slow_mode: add min value for slow_mode_duration field.

This commit is contained in:
John Livingston 2024-02-23 15:50:43 +01:00
parent ec442fbd2b
commit 93f2cc277d
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## ??? (Not Released Yet)
* Fix mod_muc_slow_mode: add min value for slow_mode_duration field.
## 8.3.1
* Fix: video owner must be room owner, not only admin. Otherwise they can't edit room parameters (including slow mode settings).

View File

@ -66,6 +66,7 @@ local function add_form_option(event)
name = "muc#roomconfig_slow_mode_duration";
type = "text-single";
datatype = "xs:integer";
range_min = 0;
label = "Slow Mode (0=disabled, any positive integer= users can send a message every X seconds.)";
-- desc = "";
value = get_slow_mode_duration(event.room);