# HG changeset patch # User Waqas Hussain <waqas20@gmail.com> # Date 1244046452 -18000 # Node ID 39197fe5ae948c9ef44f96b650e85c8082927562 # Parent 13dde33d5b874ccc46ebe27990ea1825163fbebf stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result diff -r 13dde33d5b87 -r 39197fe5ae94 core/stanza_router.lua --- a/core/stanza_router.lua Wed Jun 03 08:02:24 2009 +0500 +++ b/core/stanza_router.lua Wed Jun 03 21:27:32 2009 +0500 @@ -134,6 +134,7 @@ 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