aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/request.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-15 11:55:27 +0100
committerKim Alvefur <zash@zash.se>2018-12-15 11:55:27 +0100
commitdf9cfd0e0c21ad9a98e58d857ec5da74e422e592 (patch)
tree40afacc0163611dafac523d01f33f854fed8ecca /plugins/muc/request.lib.lua
parent3d6361261e29f8411f4bec615da1643eae4aa362 (diff)
downloadprosody-df9cfd0e0c21ad9a98e58d857ec5da74e422e592.tar.gz
prosody-df9cfd0e0c21ad9a98e58d857ec5da74e422e592.zip
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?
Diffstat (limited to 'plugins/muc/request.lib.lua')
-rw-r--r--plugins/muc/request.lib.lua2
1 files changed, 1 insertions, 1 deletions
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";