Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1887:e3c790060c03
stanza_router: Add COMPAT comment for Pidgin workaround
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Oct 2009 16:31:27 +0100 |
parent | 1609:95d3bcd82334 |
child | 1900:93a94ec05ebe |
comparison
equal
deleted
inserted
replaced
1886:d19c0a21bfb6 | 1887:e3c790060c03 |
---|---|
108 else | 108 else |
109 event = "stanza/"..stanza.attr.xmlns..":"..stanza.name; | 109 event = "stanza/"..stanza.attr.xmlns..":"..stanza.name; |
110 end | 110 end |
111 if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end | 111 if h.events.fire_event(event, {origin = origin, stanza = stanza}) then return; end |
112 end | 112 end |
113 if host and not hosts[host] then host = nil; end -- workaround for a Pidgin bug which sets 'to' to the SRV result | 113 if host and not hosts[host] then host = nil; end -- COMPAT: workaround for a Pidgin bug which sets 'to' to the SRV result |
114 modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); | 114 modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); |
115 end | 115 end |
116 end | 116 end |
117 | 117 |
118 function core_post_stanza(origin, stanza) | 118 function core_post_stanza(origin, stanza) |