comparison mod_muc_adhoc_bots/mod_muc_adhoc_bots.lua @ 5846:8b868c00e38e

mod_muc_adhoc_bots: Fix bug preventing multiple commands from showing
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Sun, 25 Feb 2024 19:17:40 -0500
parents eade7ff9f52c
children
comparison
equal deleted inserted replaced
5845:83ee752f148c 5846:8b868c00e38e
35 if query then 35 if query then
36 -- Should use query:childtags("item") but it doesn't work 36 -- Should use query:childtags("item") but it doesn't work
37 for j,item in ipairs(query.tags) do 37 for j,item in ipairs(query.tags) do
38 item.attr.node = json.encode({ jid = item.attr.jid, node = item.attr.node }) 38 item.attr.node = json.encode({ jid = item.attr.jid, node = item.attr.node })
39 item.attr.jid = event.stanza.attr.to 39 item.attr.jid = event.stanza.attr.to
40 reply:add_child(item):up() 40 reply:add_child(item)
41 end 41 end
42 end 42 end
43 end 43 end
44 end 44 end
45 event.origin.send(reply:up()) 45 event.origin.send(reply:up())