diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-07 19:15:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-07 19:15:35 +0200 |
commit | 236825ba8ce7cb811457a52ab9e18e31c2231a93 (patch) | |
tree | ec6f818bafce6c4aa0304312b2a2b1dfdb033d62 | |
parent | ad90995e3f3cee91596566be5d99c625cb3a62a4 (diff) | |
download | prosody-236825ba8ce7cb811457a52ab9e18e31c2231a93.tar.gz prosody-236825ba8ce7cb811457a52ab9e18e31c2231a93.zip |
MUC: Advertise language field as such via XEP-0122
This lets clients know that the field is a language field and should be
in RFC 5646 format.
Field validation code in util.dataforms left for future commit.
-rw-r--r-- | plugins/muc/language.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/language.lib.lua b/plugins/muc/language.lib.lua index ee80806b..2ee2ba0f 100644 --- a/plugins/muc/language.lib.lua +++ b/plugins/muc/language.lib.lua @@ -32,6 +32,7 @@ local function add_form_option(event) label = "Language tag for room (e.g. 'en', 'de', 'fr' etc.)"; type = "text-single"; desc = "Indicate the primary language spoken in this room"; + datatype = "xs:language"; value = get_language(event.room) or ""; }); end |