diff options
author | Kim Alvefur <zash@zash.se> | 2016-06-22 22:22:29 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-06-22 22:22:29 +0200 |
commit | 7356f170744be074658d2b7dab8b9c2cb470ff9a (patch) | |
tree | f04565b54c2cbad3b0e94dc36ba68ff59df23475 /plugins | |
parent | 5147175a9740948b44ac3ba6c9a99b1aa345a4a3 (diff) | |
download | prosody-7356f170744be074658d2b7dab8b9c2cb470ff9a.tar.gz prosody-7356f170744be074658d2b7dab8b9c2cb470ff9a.zip |
mod_privacy: Fix selecting the top resource (fixes #694)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_privacy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_privacy.lua b/plugins/mod_privacy.lua index 49c9427f..f95dfa50 100644 --- a/plugins/mod_privacy.lua +++ b/plugins/mod_privacy.lua @@ -397,7 +397,7 @@ function preCheckIncoming(e) local prio = 0; if bare_sessions[node.."@"..host] ~= nil then for resource, session_ in pairs(bare_sessions[node.."@"..host].sessions) do - if session_.priority ~= nil and session_.priority > prio then + if session_.priority ~= nil and session_.priority >= prio then session = session_; prio = session_.priority; end |