Changeset

72:e78db62beebc

Code cleanup
author Waqas Hussain <waqas20@gmail.com>
date Wed, 08 Oct 2008 17:05:25 +0500
parents 71:fbb4ef1da82e
children 73:937448005121
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Wed Oct 08 04:49:55 2008 +0500
+++ b/core/stanza_router.lua	Wed Oct 08 17:05:25 2008 +0500
@@ -55,10 +55,7 @@
 		-- 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