comparison mod_muc_batched_probe/mod_muc_batched_probe.lua @ 4007:845d13ab0dc0

mod_muc_batched_probe: Call instance method
author JC Brand <jc@opkode.com>
date Fri, 01 May 2020 11:34:09 +0200
parents d56b3c0195a8
children 4611999fd8d3
comparison
equal deleted inserted replaced
4000:d56b3c0195a8 4007:845d13ab0dc0
21 if not query then 21 if not query then
22 return; 22 return;
23 end; 23 end;
24 24
25 local room = get_room_from_jid(stanza.attr.to); 25 local room = get_room_from_jid(stanza.attr.to);
26 for item in query.get_children() do 26 for item in query:children() do
27 local probed_jid = item.attr.jid; 27 local probed_jid = item.attr.jid;
28 room:respond_to_probe(stanza.attr.from, probed_jid); 28 room:respond_to_probe(stanza.attr.from, probed_jid);
29 end 29 end
30 event.origin.send(st.reply(stanza)); 30 event.origin.send(st.reply(stanza));
31 return true; 31 return true;