aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/stanza_router.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 097d34a8..f3d385c7 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -134,6 +134,7 @@ function core_process_stanza(origin, stanza)
end
if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end
end
+ if host and not hosts[host] then host = nil; end -- workaround for a Pidgin bug which sets 'to' to the SRV result
modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza);
end
end