mod_cloud_notify: Use typed config API
authorKim Alvefur <zash@zash.se>
Tue, 26 Jul 2016 11:42:47 +0200
changeset 2250 a3e3dc9131e7
parent 2249 a0727d23ee65
child 2251 d09014d8c901
mod_cloud_notify: Use typed config API
mod_cloud_notify/mod_cloud_notify.lua
--- 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();