aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-08-26 19:10:15 +0200
committerKim Alvefur <zash@zash.se>2022-08-26 19:10:15 +0200
commita018497a27dea6d379d7772b36c4ba5593d67ecb (patch)
tree0152ace35fd1232589603354f491acf3dc69220f /plugins/mod_s2s.lua
parentde4b0b6de21dd260c8d3ab39d51bfc551a33c693 (diff)
downloadprosody-a018497a27dea6d379d7772b36c4ba5593d67ecb.tar.gz
prosody-a018497a27dea6d379d7772b36c4ba5593d67ecb.zip
mod_s2s: Simplify conditionals since all sessions should have .host now
Diffstat (limited to 'plugins/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
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