projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e69acb2
)
mod_presence: Quick fix to make probes from local users to local hosts work.
author
Waqas Hussain
<waqas20@gmail.com>
Fri, 29 Jan 2010 16:08:18 +0000
(21:08 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Fri, 29 Jan 2010 16:08:18 +0000
(21:08 +0500)
plugins/mod_presence.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_presence.lua
b/plugins/mod_presence.lua
index ec983fc26795fa19a26a46bc084ad35cb9d3457d..c28dd3384c00e43c5d805ae9067e711c12812736 100644
(file)
--- 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