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
2 changed files with 5 additions and 0 deletions

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);