Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1294:39197fe5ae94
stanza_router: workaround for a Pidgin bug which sets 'to' to the SRV result
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 03 Jun 2009 21:27:32 +0500 |
parent | 1292:b18c1ad7fcb6 |
child | 1307:c9c58aa990bb |
comparison
equal
deleted
inserted
replaced
1293:13dde33d5b87 | 1294:39197fe5ae94 |
---|---|
132 else | 132 else |
133 event = "stanza/"..stanza.attr.xmlns..":"..stanza.name; | 133 event = "stanza/"..stanza.attr.xmlns..":"..stanza.name; |
134 end | 134 end |
135 if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end | 135 if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end |
136 end | 136 end |
137 if host and not hosts[host] then host = nil; end -- workaround for a Pidgin bug which sets 'to' to the SRV result | |
137 modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); | 138 modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); |
138 end | 139 end |
139 end | 140 end |
140 | 141 |
141 function core_post_stanza(origin, stanza) | 142 function core_post_stanza(origin, stanza) |