File

mod_s2s_smacks_timeout/mod_s2s_smacks_timeout.lua @ 5175:432587ad1642

mod_muc_rtbl: fix traceback because of scoping error There is no "event" there, we have to use the occupant data instead. That's what you get for moving code around!
author Jonas Schäfer <jonas@wielicki.name>
date Wed, 22 Feb 2023 13:33:16 +0100
parent 4981:f0fe95f9e21c
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);