diff mod_cloud_notify/mod_cloud_notify.lua @ 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 eb5555a3a535
children d09014d8c901
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();