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 | 1a0df81387903d1c731d29e802ac52d1ad29f1ad (patch) | |
tree | 3e3fc5980d5ddc623e412ebcbe0b0563dab2c8ae | |
parent | 62eee94e2bc04402be96786a7a83ade4a3728807 (diff) | |
download | prosody-1a0df81387903d1c731d29e802ac52d1ad29f1ad.tar.gz prosody-1a0df81387903d1c731d29e802ac52d1ad29f1ad.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) |