From 2a24a95401246437652cd5cca44e5a31a6321f6d Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 8 Oct 2008 17:05:25 +0500 Subject: Code cleanup --- core/stanza_router.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core') diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 8a265a48..8eb6d4d1 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -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 -- cgit v1.2.3