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.
vault/master
Kim Alvefur 7 years ago
parent 88345b0172
commit d64c3ffda4
  1. 1
      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

Loading…
Cancel
Save