Software /
code /
prosody
Diff
plugins/mod_privacy.lua @ 7459:94af49ad657e
mod_privacy: Fix selecting the top resource (fixes #694)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Jun 2016 22:22:29 +0200 |
parent | 6365:75bd55e84112 |
child | 7460:726b088f9408 |
line wrap: on
line diff
--- a/plugins/mod_privacy.lua Sat May 21 19:10:03 2016 +0200 +++ b/plugins/mod_privacy.lua Wed Jun 22 22:22:29 2016 +0200 @@ -397,7 +397,7 @@ 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