From df9cfd0e0c21ad9a98e58d857ec5da74e422e592 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 15 Dec 2018 11:55:27 +0100 Subject: =?UTF-8?q?MUC:=20Fix=20traceback=20when=20requesting=20voice=20(f?= =?UTF-8?q?ixes=20#1269)=20(thanks=20jonas=E2=80=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced by change from add_child to add_direct_child in ce57c69a20e2 Why does add_direct_child not return self like everything else? --- plugins/muc/request.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/request.lib.lua b/plugins/muc/request.lib.lua index 1d9c39f9..4e95fdc3 100644 --- a/plugins/muc/request.lib.lua +++ b/plugins/muc/request.lib.lua @@ -82,7 +82,7 @@ module:hook("muc-voice-request", function(event) }; 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"; -- cgit v1.2.3