Moderation delay WIP (#132):

* default channel value for moderation delay
This commit is contained in:
John Livingston
2024-07-09 16:15:07 +02:00
parent 00a0dca1f9
commit 7a54594967
12 changed files with 92 additions and 3 deletions

View File

@ -97,6 +97,11 @@ local function update_room(event)
must104 = true;
end
end
if type(config.moderation_delay) == "number" then
if room._data.moderation_delay ~= config.moderation_delay then
room._data.moderation_delay = config.moderation_delay;
end
end
if (type(config.livechat_muc_terms) == "string") then
-- to easily detect if the value is given or not, we consider that the caller passes "" when terms must be deleted.
if set_muc_terms then