aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-01-29 21:08:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-01-29 21:08:18 +0500
commit0ff3e76b777a8feda3d1c1faa839daa7a397e96e (patch)
treea1877ce284474369592ba05e1a17a8993b456305 /plugins
parent0e7b83863adad24bdc4ba627f034d2f6d329cf33 (diff)
downloadprosody-0ff3e76b777a8feda3d1c1faa839daa7a397e96e.tar.gz
prosody-0ff3e76b777a8feda3d1c1faa839daa7a397e96e.zip
mod_presence: Quick fix to make probes from local users to local hosts work.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index ec983fc2..c28dd338 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -76,6 +76,7 @@ function handle_normal_presence(origin, stanza, core_route_stanza)
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