mod_muc_batched_probe/mod_muc_batched_probe.lua
changeset 4011 845d13ab0dc0
parent 4004 d56b3c0195a8
child 4192 4611999fd8d3
equal deleted inserted replaced
4004:d56b3c0195a8 4011: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;