comparison plugins/muc/subject.lib.lua @ 11128:c3eefb517b7b 0.11

MUC: Correct advertising of subject write access (really fixes #1155) Thanks pep. and lovetox XEP-0045 ยง6.4: > any field defined for the muc\#roomconfig FORM_TYPE can be included in > the extended service discovery fields Probably happened because the same mistake is in #1155
author Kim Alvefur <zash@zash.se>
date Sun, 04 Oct 2020 18:00:32 +0200
parents 173c0e16e704
children a5acd6354845
comparison
equal deleted inserted replaced
11124:1aea75b63d0a 11128:c3eefb517b7b
29 return true; 29 return true;
30 end 30 end
31 31
32 module:hook("muc-disco#info", function (event) 32 module:hook("muc-disco#info", function (event)
33 table.insert(event.form, { 33 table.insert(event.form, {
34 name = "muc#roominfo_changesubject"; 34 name = "muc#roomconfig_changesubject";
35 type = "boolean"; 35 type = "boolean";
36 }); 36 });
37 event.formdata["muc#roominfo_changesubject"] = get_changesubject(event.room); 37 event.formdata["muc#roomconfig_changesubject"] = get_changesubject(event.room);
38 end); 38 end);
39 39
40 module:hook("muc-config-form", function(event) 40 module:hook("muc-config-form", function(event)
41 table.insert(event.form, { 41 table.insert(event.form, {
42 name = "muc#roomconfig_changesubject"; 42 name = "muc#roomconfig_changesubject";