# HG changeset patch # User Waqas Hussain # Date 1249641047 -18000 # Node ID af962e6ae78136d49a2a6d770febc581e3114cac # Parent 33d0874667670fac5c3f5ef3bef3612e0fc31ffd Fixed: Outbound subscription requests silently dropped (regression in hg:7f17d0d00fbb) diff -r 33d087466767 -r af962e6ae781 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Wed Aug 05 13:51:44 2009 +0100 +++ b/plugins/mod_presence.lua Fri Aug 07 15:30:47 2009 +0500 @@ -165,7 +165,7 @@ function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza) local node, host = jid_split(from_bare); - if node == origin.username and host == origin.host then return; end -- No self contacts + if to_bare == origin.username.."@"..origin.host then return; end -- No self contacts local st_from, st_to = stanza.attr.from, stanza.attr.to; stanza.attr.from, stanza.attr.to = from_bare, to_bare; log("debug", "outbound presence "..stanza.attr.type.." from "..from_bare.." for "..to_bare);