From a018497a27dea6d379d7772b36c4ba5593d67ecb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 26 Aug 2022 19:10:15 +0200 Subject: mod_s2s: Simplify conditionals since all sessions should have .host now --- plugins/mod_s2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index 1df3d5ad..7eae9043 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -275,7 +275,7 @@ function module.add_host(module) function module.unload() if module.reloading then return end for _, session in pairs(sessions) do - if session.to_host == module.host or session.from_host == module.host then + if session.host == module.host then session:close("host-gone"); end end -- cgit v1.2.3