view mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua @ 6193:2b20236bce3e

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