diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 5 |
1 files changed, 1 insertions, 4 deletions
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 |