view mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua @ 6195:dfdf0bf1e84f

mod_invites_page: Remove compatibility with 0.11
author Link Mauve <linkmauve@linkmauve.fr>
date Wed, 09 Apr 2025 19:05:14 +0200
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);