diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-03 21:27:32 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-03 21:27:32 +0500 |
commit | 193f981279684c9ca99709c2d42ad300b7bf2515 (patch) | |
tree | c71d2ddaec310c4748f1ccfa15d893e36f002fa8 /core | |
parent | 558903ff51558421c3c989e014da3fa643944580 (diff) | |
download | prosody-193f981279684c9ca99709c2d42ad300b7bf2515.tar.gz prosody-193f981279684c9ca99709c2d42ad300b7bf2515.zip |
stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 1 |
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 |