From 158acca7044a7d141c7a2fded034d4d084b75017 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 7 Aug 2009 15:30:47 +0500 Subject: Fixed: Outbound subscription requests silently dropped (regression in hg:7f17d0d00fbb) --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 02ec6f79..f78a5950 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -165,7 +165,7 @@ end 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); -- cgit v1.2.3