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) |