diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-04-24 00:38:40 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-04-24 00:38:40 +0500 |
commit | 3ab59e41d362ca0f1e30f18763ad9522359f6b0b (patch) | |
tree | c0f8ac49ba45ec5b96b2b3a217cf94ab9c0b04ca /plugins | |
parent | 80b83b928e7515d2f383079cd10e96439b0b259d (diff) | |
download | prosody-3ab59e41d362ca0f1e30f18763ad9522359f6b0b.tar.gz prosody-3ab59e41d362ca0f1e30f18763ad9522359f6b0b.zip |
mod_presence: Broadcast a user's presence to only the user's 'available' resources
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_presence.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 135d1c67..2fb976b5 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -65,7 +65,7 @@ function handle_normal_presence(origin, stanza, core_route_stanza) end
local node, host = jid_split(stanza.attr.from);
for _, res in pairs(hosts[host].sessions[node].sessions) do -- broadcast to all resources
- if res ~= origin and res.full_jid then -- to resource. FIXME is res.full_jid the correct check? Maybe it should be res.presence
+ if res ~= origin and res.presence then -- to resource
stanza.attr.to = res.full_jid;
core_route_stanza(origin, stanza);
end
|