From 8368fb1935d99a2aa4ca2a9d57fb400ac9e9cd87 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 22 Jun 2016 22:22:29 +0200 Subject: mod_privacy: Fix selecting the top resource (fixes #694) --- plugins/mod_privacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_privacy.lua') 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 -- cgit v1.2.3