Software /
code /
prosody
Changeset
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 | 11124:1aea75b63d0a |
children | 11140:e17b98feb0b7 |
files | plugins/muc/subject.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/subject.lib.lua Sat Oct 03 15:03:09 2020 +0200 +++ b/plugins/muc/subject.lib.lua Sun Oct 04 18:00:32 2020 +0200 @@ -31,10 +31,10 @@ 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)