view mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua @ 5723:5f7f6ee32a11

mod_invites_page: Stop displaying the QRCode to mobile devices
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 19:17:44 +0100
parents f0fe95f9e21c
children
line wrap: on
line source

module:depends("smacks");

module:hook("smacks-ack-delayed", function (event)
	if event.origin.type == "s2sin" or event.origin.type == "s2sout" then
		event.origin:close("connection-timeout");
		return true;
	end
end);