# HG changeset patch # User Kim Alvefur # Date 1544871327 -3600 # Node ID 0cfb7b3593eba575ad1d970d5bff31d97be1c2d1 # Parent e616c37756b34b85104c20e45af18dc8ffcdf590 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? diff -r e616c37756b3 -r 0cfb7b3593eb plugins/muc/request.lib.lua --- 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";