aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-04-03 06:39:28 +0200
committerKim Alvefur <zash@zash.se>2015-04-03 06:39:28 +0200
commit12d6e03b5b62d8974f98492112a70fc754b5cb28 (patch)
tree0ddb52bfa4a521df1e6ef7b9f54e3e3d615597a2 /plugins/mod_presence.lua
parent315e3b3b937c22224c4530a194420f1b2fd77316 (diff)
parent28c58565ace33870970010c9d195c5da5d9cf4d1 (diff)
downloadprosody-12d6e03b5b62d8974f98492112a70fc754b5cb28.tar.gz
prosody-12d6e03b5b62d8974f98492112a70fc754b5cb28.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r--plugins/mod_presence.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 9e8f37db..ab57a158 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -106,10 +106,8 @@ function handle_normal_presence(origin, stanza)
res.presence.attr.to = nil;
end
end
- if roster.pending then -- resend incoming subscription requests
- for jid in pairs(roster.pending) do
- origin.send(st.presence({type="subscribe", from=jid})); -- TODO add to attribute? Use original?
- end
+ for jid in pairs(roster[false].pending) do -- resend incoming subscription requests
+ origin.send(st.presence({type="subscribe", from=jid})); -- TODO add to attribute? Use original?
end
local request = st.presence({type="subscribe", from=origin.username.."@"..origin.host});
for jid, item in pairs(roster) do -- resend outgoing subscription requests