Code cleanup

Wed, 08 Oct 2008 17:05:25 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 08 Oct 2008 17:05:25 +0500
changeset 72
e78db62beebc
parent 71
fbb4ef1da82e
child 73
937448005121

Code cleanup

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- 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

mercurial