# HG changeset patch # User Waqas Hussain # Date 1276271100 -18000 # Node ID 651139e831b1356dca831a5f8f5843923d2326cf # Parent 2d61773d7ab4c3519c8505529debbc58498b9cca mod_presence: Fixed a traceback on outgoing subscriptions from offline users. diff -r 2d61773d7ab4 -r 651139e831b1 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Fri Jun 11 14:25:54 2010 +0100 +++ b/plugins/mod_presence.lua Fri Jun 11 20:45:00 2010 +0500 @@ -169,7 +169,7 @@ 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);