Comparison

core/stanza_router.lua @ 1408:9b745496b953

stanza_router: Call core_post_stanza from core_route_stanza in place of old routing code
author Waqas Hussain <waqas20@gmail.com>
date Thu, 25 Jun 2009 08:04:10 +0500
parent 1407:85ec12aec35f
child 1409:e34cbd9baf8b
comparison
equal deleted inserted replaced
1407:85ec12aec35f 1408:9b745496b953
210 if stanza.name == "presence" and (stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error") then resource = nil; end 210 if stanza.name == "presence" and (stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error") then resource = nil; end
211 211
212 local host_session = hosts[host] 212 local host_session = hosts[host]
213 if host_session and host_session.type == "local" then 213 if host_session and host_session.type == "local" then
214 -- old stanza routing code removed 214 -- old stanza routing code removed
215 core_post_stanza(origin, stanza);
215 elseif origin.type == "c2s" then 216 elseif origin.type == "c2s" then
216 -- Remote host 217 -- Remote host
217 local xmlns = stanza.attr.xmlns; 218 local xmlns = stanza.attr.xmlns;
218 --stanza.attr.xmlns = "jabber:server"; 219 --stanza.attr.xmlns = "jabber:server";
219 stanza.attr.xmlns = nil; 220 stanza.attr.xmlns = nil;