aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-07 15:30:47 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-07 15:30:47 +0500
commit158acca7044a7d141c7a2fded034d4d084b75017 (patch)
tree755ae6e2994ccd38c942bf320050344127e543ef /plugins
parent57cef06c8e7bc08b4908b397f18399f6ff250aac (diff)
downloadprosody-158acca7044a7d141c7a2fded034d4d084b75017.tar.gz
prosody-158acca7044a7d141c7a2fded034d4d084b75017.zip
Fixed: Outbound subscription requests silently dropped (regression in hg:7f17d0d00fbb)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
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);