mod_presence: Removed a useless check when handling incoming presence probes and...
authorWaqas Hussain <waqas20@gmail.com>
Sun, 23 May 2010 19:04:22 +0000 (00:04 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sun, 23 May 2010 19:04:22 +0000 (00:04 +0500)
plugins/mod_presence.lua

index 535e65d7eb3e21ee0832814daa8f765f963705d0..255faecc97e767bed11ee0666a2a699bd3ca7b75 100644 (file)
@@ -227,10 +227,6 @@ function handle_inbound_presence_subscriptions_and_probes(origin, stanza, from_b
        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