Comparison

mod_muc_webchat_url/mod_muc_webchat_url.lua @ 4725:dcafddc31b1c

mod_muc_webchat_url: Add hint of being an URL to form field
author Kim Alvefur <zash@zash.se>
date Mon, 25 Oct 2021 16:48:06 +0200
parent 3675:776ff0875e35
comparison
equal deleted inserted replaced
4724:b125db92bac6 4725:dcafddc31b1c
31 local room, form = event.room, event.form; 31 local room, form = event.room, event.form;
32 table.insert(form, { 32 table.insert(form, {
33 name = "muc#roomconfig_webchat_url", 33 name = "muc#roomconfig_webchat_url",
34 type = "text-single", 34 type = "text-single",
35 label = "URL where this room can be joined", 35 label = "URL where this room can be joined",
36 datatype = "xs:anyURI",
36 value = get_webchat_url(room), 37 value = get_webchat_url(room),
37 }); 38 });
38 end); 39 end);
39 40
40 module:hook("muc-config-submitted", function(event) 41 module:hook("muc-config-submitted", function(event)