Mercurial > prosody-hg
comparison plugins/muc/mod_muc.lua @ 13894:c6010e1322aa 13.0
MUC: Fix #1938 by reverting ac44bb7b7064
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Jun 2025 21:13:51 +0200 |
| parents | 3609d8fcad00 |
| children | 0e346f4d88ce ce8ed69c4962 |
comparison
equal
deleted
inserted
replaced
| 13892:c83fdee8efda | 13894:c6010e1322aa |
|---|---|
| 300 room:set_moderated(module:get_option_boolean("muc_room_default_moderated", room:get_moderated())); | 300 room:set_moderated(module:get_option_boolean("muc_room_default_moderated", room:get_moderated())); |
| 301 room:set_whois(module:get_option_boolean("muc_room_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators"); | 301 room:set_whois(module:get_option_boolean("muc_room_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators"); |
| 302 room:set_changesubject(module:get_option_boolean("muc_room_default_change_subject", room:get_changesubject())); | 302 room:set_changesubject(module:get_option_boolean("muc_room_default_change_subject", room:get_changesubject())); |
| 303 room:set_historylength(module:get_option_integer("muc_room_default_history_length", room:get_historylength(), 0)); | 303 room:set_historylength(module:get_option_integer("muc_room_default_history_length", room:get_historylength(), 0)); |
| 304 room:set_language(lang or module:get_option_string("muc_room_default_language")); | 304 room:set_language(lang or module:get_option_string("muc_room_default_language")); |
| 305 room:set_presence_broadcast(module:get_option_enum("muc_room_default_presence_broadcast", room:get_presence_broadcast(), "visitor", "participant", | 305 room:set_presence_broadcast(module:get_option("muc_room_default_presence_broadcast", room:get_presence_broadcast())); |
| 306 "moderator")); | |
| 307 room:set_allow_pm(module:get_option_enum("muc_room_default_allow_pm", room:get_allow_pm(), "visitor", "participant", "moderator")); | 306 room:set_allow_pm(module:get_option_enum("muc_room_default_allow_pm", room:get_allow_pm(), "visitor", "participant", "moderator")); |
| 308 room:set_allow_modpm(module:get_option_boolean("muc_room_default_always_allow_moderator_pms", room:get_allow_modpm())); | 307 room:set_allow_modpm(module:get_option_boolean("muc_room_default_always_allow_moderator_pms", room:get_allow_modpm())); |
| 309 end | 308 end |
| 310 | 309 |
| 311 function create_room(room_jid, config) | 310 function create_room(room_jid, config) |
