Software /
code /
prosody
Changeset
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 |
parents | 7430:ad0b15f253ee |
children | 7460:726b088f9408 7495:caee8a32983a |
files | plugins/mod_privacy.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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