# HG changeset patch # User Kim Alvefur # Date 1562519735 -7200 # Node ID 13ccc2f05007c5559541b6e9ba8a78e276817f50 # Parent 6ffed67356e9d5659b0c524f6861c858eeeffd7f 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. diff -r 6ffed67356e9 -r 13ccc2f05007 plugins/muc/language.lib.lua --- 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