mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option

This commit is contained in:
Kim Alvefur 2016-03-11 13:13:20 +01:00
parent bc0ce12e97
commit 421cbe1c1a

View file

@ -51,7 +51,7 @@ local function recalc_resource_map(user)
end
end
local ignore_presence_priority = module:get_option("ignore_presence_priority");
local ignore_presence_priority = module:get_option_boolean("ignore_presence_priority", false);
function handle_normal_presence(origin, stanza)
if ignore_presence_priority then