Diff

plugins/mod_presence.lua @ 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
parent 6613:2aae36312eb9
child 7279:051279755cad
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