Changeset

7265:78be11bf62bf

mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option
author Kim Alvefur <zash@zash.se>
date Fri, 11 Mar 2016 13:13:20 +0100
parents 7264:6d97895c2bd7
children 7266:f0a2a305b788
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Thu Mar 10 10:13:57 2016 +0100
+++ b/plugins/mod_presence.lua	Fri Mar 11 13:13:20 2016 +0100
@@ -51,7 +51,7 @@
 	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