Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
12680:ca4abc6ab208 | 12681:16ea01745dbe |
---|---|
273 end, -1); | 273 end, -1); |
274 | 274 |
275 function module.unload() | 275 function module.unload() |
276 if module.reloading then return end | 276 if module.reloading then return end |
277 for _, session in pairs(sessions) do | 277 for _, session in pairs(sessions) do |
278 if session.to_host == module.host or session.from_host == module.host then | 278 if session.host == module.host then |
279 session:close("host-gone"); | 279 session:close("host-gone"); |
280 end | 280 end |
281 end | 281 end |
282 end | 282 end |
283 end | 283 end |