From fdb9749df9dbd15aab3607a5b09c2f6652877e6e Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 11 Jun 2010 20:45:00 +0500 Subject: mod_presence: Fixed a traceback on outgoing subscriptions from offline users. --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_presence.lua') 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); -- cgit v1.2.3