aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-03 21:27:32 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-03 21:27:32 +0500
commit193f981279684c9ca99709c2d42ad300b7bf2515 (patch)
treec71d2ddaec310c4748f1ccfa15d893e36f002fa8 /core/stanza_router.lua
parent558903ff51558421c3c989e014da3fa643944580 (diff)
downloadprosody-193f981279684c9ca99709c2d42ad300b7bf2515.tar.gz
prosody-193f981279684c9ca99709c2d42ad300b7bf2515.zip
stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result
Diffstat (limited to 'core/stanza_router.lua')
-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