Diff

plugins/muc/request.lib.lua @ 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
parent 9081:ce57c69a20e2
child 12977:74b9e05af71e
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";