# HG changeset patch # User Thilo Cestonaro # Date 1255592473 -7200 # Node ID 0381d5d38c37767450bab5e983adc9e26d994246 # Parent 4c4daa1f8ae7103d717424e3bb1e54e9941af799 mod_privacy: fix bug where priority was nil and compared to a number (Thx flo for reporting!) diff -r 4c4daa1f8ae7 -r 0381d5d38c37 mod_privacy/mod_privacy.lua --- a/mod_privacy/mod_privacy.lua Wed Oct 14 00:52:58 2009 +0200 +++ b/mod_privacy/mod_privacy.lua Thu Oct 15 09:41:13 2009 +0200 @@ -353,7 +353,7 @@ module:log("debug", "Never block communications from one of a user's resources to another."); return; -- from one of a user's resource to another => HANDS OFF! end - + local idx; local list; local item; @@ -465,7 +465,7 @@ local session_; if bare_sessions[node.."@"..host] ~= nil then for resource, session_ in pairs(bare_sessions[node.."@"..host].sessions) do - if session_.priority > prio then + if session_.priority ~= nil and session_.priority > prio then session = session_; prio = session_.priority; end