# HG changeset patch # User Waqas Hussain # Date 1264781298 -18000 # Node ID 0e4f6df8b2a3300f92e02c97fa17d5da95cb58be # Parent 621f71d7ba2b4f3e083fb5a05fb86cd567db8cd4 mod_presence: Quick fix to make probes from local users to local hosts work. diff -r 621f71d7ba2b -r 0e4f6df8b2a3 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Fri Jan 29 21:06:51 2010 +0500 +++ b/plugins/mod_presence.lua Fri Jan 29 21:08:18 2010 +0500 @@ -76,6 +76,7 @@ end end if stanza.attr.type == nil and not origin.presence then -- initial presence + origin.presence = stanza; -- FIXME repeated later local probe = st.presence({from = origin.full_jid, type = "probe"}); for jid, item in pairs(roster) do -- probe all contacts we are subscribed to if item.subscription == "both" or item.subscription == "to" then