Software /
code /
prosody
Changeset
10063:13ccc2f05007
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 Jul 2019 19:15:35 +0200 |
parents | 10062:6ffed67356e9 |
children | 10064:1acfd25cd507 |
files | plugins/muc/language.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/language.lib.lua Sat Jul 06 17:47:06 2019 +0200 +++ b/plugins/muc/language.lib.lua Sun Jul 07 19:15:35 2019 +0200 @@ -32,6 +32,7 @@ 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