From a574e5c9179d4234234e422d4ee82a67b5266dcc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 11 Mar 2016 13:13:20 +0100 Subject: mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index ab57a158..76394baf 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -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 -- cgit v1.2.3