aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-11 20:45:00 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-11 20:45:00 +0500
commitfdb9749df9dbd15aab3607a5b09c2f6652877e6e (patch)
tree0143806f25753d669b5abfc0fc9df0eecf437e05 /plugins
parent40fb762628367af18e1b800f284a16f4cb1f467b (diff)
downloadprosody-fdb9749df9dbd15aab3607a5b09c2f6652877e6e.tar.gz
prosody-fdb9749df9dbd15aab3607a5b09c2f6652877e6e.zip
mod_presence: Fixed a traceback on outgoing subscriptions from offline users.
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 3735cf1d..8e6ef85a 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -169,7 +169,7 @@ end
function handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare)
local node, host = jid_split(from_bare);
- if to_bare == origin.username.."@"..origin.host then return; end -- No self contacts
+ if to_bare == from_bare 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);