Software /
code /
prosody
Diff
plugins/mod_s2s.lua @ 12681:16ea01745dbe
mod_s2s: Simplify conditionals since all sessions should have .host now
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 26 Aug 2022 19:10:15 +0200 |
parent | 12680:ca4abc6ab208 |
child | 12805:d96e24bd54e1 |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Fri Aug 26 19:03:23 2022 +0200 +++ b/plugins/mod_s2s.lua Fri Aug 26 19:10:15 2022 +0200 @@ -275,7 +275,7 @@ 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