diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-03 14:43:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-03 14:43:15 +0200 |
commit | faeaeb3d02b6023492ca3a70bb43285f3799178d (patch) | |
tree | 23b49009625b50ede2f228185a21bd683d30d15a /plugins | |
parent | f541295344f14d2be19dd8197c260f319ea6d20c (diff) | |
download | prosody-faeaeb3d02b6023492ca3a70bb43285f3799178d.tar.gz prosody-faeaeb3d02b6023492ca3a70bb43285f3799178d.zip |
MUC: Use xml:lang from stanza that creates a room as default for language
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 7be8c2d3..675bd9d5 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -292,7 +292,7 @@ module:hook("muc-room-pre-create", function (event) room:set_whois(module:get_option_boolean("muc_rooom_default_public_jids", room:get_whois() == "anyone") and "anyone" or "moderators"); room:set_changesubject(module:get_option_boolean("muc_rooom_default_change_subject", room:get_changesubject())); room:set_historylength(module:get_option_number("muc_room_default_history_length", room:get_historylength())); - room:set_language(module:get_option_string("muc_room_default_language")); + room:set_language(event.stanza.attr["xml:lang"] or module:get_option_string("muc_room_default_language")); end, 1); module:hook("muc-room-pre-create", function(event) |