From 193f981279684c9ca99709c2d42ad300b7bf2515 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 3 Jun 2009 21:27:32 +0500 Subject: stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result --- core/stanza_router.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/stanza_router.lua') 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 -- cgit v1.2.3