Diff

core/stanza_router.lua @ 72:e78db62beebc

Code cleanup
author Waqas Hussain <waqas20@gmail.com>
date Wed, 08 Oct 2008 17:05:25 +0500
parent 71:fbb4ef1da82e
child 73:937448005121
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