Comparison

plugins/muc/language.lib.lua @ 9035:173c0e16e704

MUC: Add sections in room config form
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Jul 2018 15:47:08 +0100
parent 9034:1c709e3d2e5e
child 10063:13ccc2f05007
comparison
equal deleted inserted replaced
9034:1c709e3d2e5e 9035:173c0e16e704
35 value = get_language(event.room) or ""; 35 value = get_language(event.room) or "";
36 }); 36 });
37 end 37 end
38 38
39 module:hook("muc-disco#info", add_disco_form); 39 module:hook("muc-disco#info", add_disco_form);
40 module:hook("muc-config-form", add_form_option, 100-9.5); 40 module:hook("muc-config-form", add_form_option, 100-3);
41 41
42 module:hook("muc-config-submitted/muc#roomconfig_lang", function(event) 42 module:hook("muc-config-submitted/muc#roomconfig_lang", function(event)
43 if set_language(event.room, event.value) then 43 if set_language(event.room, event.value) then
44 event.status_codes["104"] = true; 44 event.status_codes["104"] = true;
45 end 45 end