Software /
code /
prosody
Diff
plugins/mod_presence.lua @ 3109:34280b1544fc
mod_presence: Removed a useless check when handling incoming presence probes and subscriptions.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 24 May 2010 00:04:22 +0500 |
parent | 3084:9b17449fb5f4 |
child | 3112:c311fdffccce |
line wrap: on
line diff
--- 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