Code cleanup

This commit is contained in:
Waqas Hussain 2008-10-08 17:05:25 +05:00
parent 5d8718f3c3
commit 2a24a95401

View file

@ -55,10 +55,7 @@ function core_route_stanza(origin, stanza)
-- Local host
local user = host_session.sessions[node];
if user then
local res = nil;
if resource then
res = user.sessions[resource];
end
local res = user.sessions[resource];
-- TODO do something about presence broadcast
if not res then
-- if we get here, resource was not specified or was unavailable