changeset 4190:e06258fc6cf1

muc_batched_probe: don't return too quickly
author JC Brand <jc@opkode.com>
date Mon, 12 Oct 2020 18:01:54 +0200
parents 4611999fd8d3
children e2728b540223
files mod_muc_batched_probe/mod_muc_batched_probe.lua
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;