aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-04 18:00:32 +0200
committerKim Alvefur <zash@zash.se>2020-10-04 18:00:32 +0200
commit53e43a8effacfe958fb5a3c4fc14833e20c2d6ce (patch)
tree3e3fc5980d5ddc623e412ebcbe0b0563dab2c8ae
parentac02007aa2f7a48c376e6be3d9424643cb98e369 (diff)
downloadprosody-53e43a8effacfe958fb5a3c4fc14833e20c2d6ce.tar.gz
prosody-53e43a8effacfe958fb5a3c4fc14833e20c2d6ce.zip
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
-rw-r--r--plugins/muc/subject.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua
index 938abf61..14256bbc 100644
--- a/plugins/muc/subject.lib.lua
+++ b/plugins/muc/subject.lib.lua
@@ -31,10 +31,10 @@ end
module:hook("muc-disco#info", function (event)
table.insert(event.form, {
- name = "muc#roominfo_changesubject";
+ name = "muc#roomconfig_changesubject";
type = "boolean";
});
- event.formdata["muc#roominfo_changesubject"] = get_changesubject(event.room);
+ event.formdata["muc#roomconfig_changesubject"] = get_changesubject(event.room);
end);
module:hook("muc-config-form", function(event)