Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 8870:dd0291aa3393
MUC: Fix Ooo (thanks pep.)
What time is it?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Jun 2018 20:54:53 +0200 |
parent | 8869:7277797a4988 |
child | 8875:be3230b42f12 |
comparison
equal
deleted
inserted
replaced
8869:7277797a4988 | 8870:dd0291aa3393 |
---|---|
283 end | 283 end |
284 end); | 284 end); |
285 | 285 |
286 module:hook("muc-room-pre-create", function (event) | 286 module:hook("muc-room-pre-create", function (event) |
287 local room = event.room; | 287 local room = event.room; |
288 room:set_public(module:get_option_boolean("muc_rooom_default_public", false)); | 288 room:set_public(module:get_option_boolean("muc_room_default_public", false)); |
289 room:set_persistent(module:get_option_boolean("muc_rooom_default_persistent", room:get_persistent())); | 289 room:set_persistent(module:get_option_boolean("muc_room_default_persistent", room:get_persistent())); |
290 room:set_members_only(module:get_option_boolean("muc_rooom_default_members_only", room:get_members_only())); | 290 room:set_members_only(module:get_option_boolean("muc_room_default_members_only", room:get_members_only())); |
291 room:set_moderated(module:get_option_boolean("muc_rooom_default_moderated", room:get_moderated())); | 291 room:set_moderated(module:get_option_boolean("muc_room_default_moderated", room:get_moderated())); |
292 room:set_whois(module:get_option_boolean("muc_rooom_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators"); | 292 room:set_whois(module:get_option_boolean("muc_room_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators"); |
293 room:set_changesubject(module:get_option_boolean("muc_rooom_default_change_subject", room:get_changesubject())); | 293 room:set_changesubject(module:get_option_boolean("muc_room_default_change_subject", room:get_changesubject())); |
294 room:set_historylength(module:get_option_number("muc_room_default_history_length", room:get_historylength())); | 294 room:set_historylength(module:get_option_number("muc_room_default_history_length", room:get_historylength())); |
295 room:set_language(event.stanza.attr["xml:lang"] or module:get_option_string("muc_room_default_language")); | 295 room:set_language(event.stanza.attr["xml:lang"] or module:get_option_string("muc_room_default_language")); |
296 end, 1); | 296 end, 1); |
297 | 297 |
298 module:hook("muc-room-pre-create", function(event) | 298 module:hook("muc-room-pre-create", function(event) |