mod_rest/mod_rest.lua
changeset 5090 dec4b2e31d1c
parent 5005 cb19cb1c03d6
child 5091 438fbebf74ac
--- a/mod_rest/mod_rest.lua	Tue Nov 22 16:59:52 2022 +0100
+++ b/mod_rest/mod_rest.lua	Sun Nov 27 00:10:38 2022 +0100
@@ -500,7 +500,7 @@
 
 	local function handle_stanza(event)
 		local stanza, origin = event.stanza, event.origin;
-		local reply_allowed = stanza.attr.type ~= "error";
+		local reply_allowed = stanza.attr.type ~= "error" and stanza.attr.type ~= "result";
 		local reply_needed = reply_allowed and stanza.name == "iq";
 		local receipt;