Software /
code /
prosody
Changeset
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 |
parents | 3108:df0df92dd58a |
children | 3110:7426727548ed |
files | plugins/mod_presence.lua |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
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