diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-10-08 17:05:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-10-08 17:05:25 +0500 |
commit | 2a24a95401246437652cd5cca44e5a31a6321f6d (patch) | |
tree | 31aa0dfbcd66689a6da5a137962116399b1bdb1f /core | |
parent | 5d8718f3c34bb0d1b49f9bc9ae4c1013bafc3e14 (diff) | |
download | prosody-2a24a95401246437652cd5cca44e5a31a6321f6d.tar.gz prosody-2a24a95401246437652cd5cca44e5a31a6321f6d.zip |
Code cleanup
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 |