aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
parentde4b0b6de21dd260c8d3ab39d51bfc551a33c693 (diff)
downloadprosody-a018497a27dea6d379d7772b36c4ba5593d67ecb.tar.gz
prosody-a018497a27dea6d379d7772b36c4ba5593d67ecb.zip
mod_s2s: Simplify conditionals since all sessions should have .host now
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index b54ea1ab..89a02c02 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -127,7 +127,7 @@ function core_process_stanza(origin, stanza)
end
core_post_stanza(origin, stanza, origin.full_jid);
else
- local h = hosts[stanza.attr.to or origin.host or origin.to_host];
+ local h = hosts[stanza.attr.to or origin.host];
if h then
local event;
if xmlns == nil then
@@ -143,7 +143,7 @@ function core_process_stanza(origin, stanza)
if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end
end
if host and not hosts[host] then host = nil; end -- COMPAT: workaround for a Pidgin bug which sets 'to' to the SRV result
- handle_unhandled_stanza(host or origin.host or origin.to_host, origin, stanza);
+ handle_unhandled_stanza(host or origin.host, origin, stanza);
end
end