# HG changeset patch # User Waqas Hussain # Date 1274641462 -18000 # Node ID 34280b1544fc674678b2fe352423659ba815a7f9 # Parent df0df92dd58afe9f27cb2d5be0b4d598ac3562bc mod_presence: Removed a useless check when handling incoming presence probes and subscriptions. diff -r df0df92dd58a -r 34280b1544fc plugins/mod_presence.lua --- 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