Changeset

4191:e2728b540223

Merge
author JC Brand <jc@opkode.com>
date Mon, 12 Oct 2020 18:04:05 +0200
parents 4190:e06258fc6cf1 (diff) 4189:22e7b3d6fcae (current diff)
children 4192:1be37846314a
files
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 17:56:10 2020 +0200
+++ b/mod_muc_batched_probe/mod_muc_batched_probe.lua	Mon Oct 12 18:04:05 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;