# HG changeset patch # User JC Brand # Date 1602518514 -7200 # Node ID e06258fc6cf109026e10ba482981a55489abd5bc # Parent 4611999fd8d339907173cea06beaee4c1feb0b3a muc_batched_probe: don't return too quickly diff -r 4611999fd8d3 -r e06258fc6cf1 mod_muc_batched_probe/mod_muc_batched_probe.lua --- a/mod_muc_batched_probe/mod_muc_batched_probe.lua Mon Oct 12 13:21:16 2020 +0200 +++ b/mod_muc_batched_probe/mod_muc_batched_probe.lua Mon Oct 12 18:01:54 2020 +0200 @@ -11,7 +11,6 @@ module:log("debug", "Module loaded"); - local function respondToBatchedProbe(event) local stanza = event.stanza; if stanza.attr.type ~= "get" then @@ -38,11 +37,10 @@ if pr then room:route_stanza(pr); end - return; + else + local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}); + room:publicise_occupant_status(probed_occupant, x, nil, nil, nil, nil, false, probing_occupant); end - local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"}); - room:publicise_occupant_status(probed_occupant, x, nil, nil, nil, nil, false, probing_occupant); - end origin.send(st.reply(stanza)); return true;