Software /
code /
prosody
Changeset
9703:0cfb7b3593eb 0.11
MUC: Fix traceback when requesting voice (fixes #1269) (thanks jonas’)
Introduced by change from add_child to add_direct_child in ce57c69a20e2
Why does add_direct_child not return self like everything else?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Dec 2018 11:55:27 +0100 |
parents | 9698:e616c37756b3 |
children | 9704:89f2ebf0615b 9709:f31ed70c993a |
files | plugins/muc/request.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/request.lib.lua Sun Dec 09 23:01:47 2018 +0100 +++ b/plugins/muc/request.lib.lua Sat Dec 15 11:55:27 2018 +0100 @@ -82,7 +82,7 @@ }; local message = st.message({ type = "normal"; from = event.room.jid }) - :add_direct_child(voice_request_form:form(formdata)); + :add_child(voice_request_form:form(formdata)); event.room:broadcast(message, function (_, occupant) return occupant.role == "moderator";