Changeset

2246:a3e3dc9131e7

mod_cloud_notify: Use typed config API
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jul 2016 11:42:47 +0200
parents 2245:a0727d23ee65
children 2247:d09014d8c901
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Sun Jul 24 17:17:06 2016 +0100
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Tue Jul 26 11:42:47 2016 +0200
@@ -11,8 +11,8 @@
 local xmlns_push = "urn:xmpp:push:0";
 
 -- configuration
-local include_body = module:get_option("push_notification_with_body", false);
-local include_sender = module:get_option("push_notification_with_sender", false);
+local include_body = module:get_option_boolean("push_notification_with_body", false);
+local include_sender = module:get_option_boolean("push_notification_with_sender", false);
 
 -- For keeping state across reloads
 local push_enabled = module:open_store();