diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-04 18:00:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-04 18:00:32 +0200 |
commit | 6411b17b599b9333ca6a65a46545abc798a1d3ab (patch) | |
tree | 3e3fc5980d5ddc623e412ebcbe0b0563dab2c8ae | |
parent | 0bac63e3731f25a0f83094d1b9339f90812edb98 (diff) | |
download | prosody-6411b17b599b9333ca6a65a46545abc798a1d3ab.tar.gz prosody-6411b17b599b9333ca6a65a46545abc798a1d3ab.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.lua | 4 |
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) |