mod_presence: Removed a useless check when handling incoming presence probes and subscriptions.

Mon, 24 May 2010 00:04:22 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 24 May 2010 00:04:22 +0500
changeset 3109
34280b1544fc
parent 3108
df0df92dd58a
child 3110
7426727548ed

mod_presence: Removed a useless check when handling incoming presence probes and subscriptions.

plugins/mod_presence.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_presence.lua	Sun May 23 23:55:01 2010 +0500
+++ b/plugins/mod_presence.lua	Mon May 24 00:04:22 2010 +0500
@@ -227,10 +227,6 @@
 	stanza.attr.from, stanza.attr.to = from_bare, to_bare;
 	log("debug", "inbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare);
 	
-	if not node then
-		log("debug", "dropping presence sent to host or invalid address '%s'", tostring(to_bare));
-	end
-	
 	if stanza.attr.type == "probe" then
 		if rostermanager.is_contact_subscribed(node, host, from_bare) then
 			if 0 == send_presence_of_available_resources(node, host, st_from, origin, core_route_stanza) then

mercurial