Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 2245:a0727d23ee65 | 2246:a3e3dc9131e7 |
|---|---|
| 9 local filters = require "util.filters"; | 9 local filters = require "util.filters"; |
| 10 | 10 |
| 11 local xmlns_push = "urn:xmpp:push:0"; | 11 local xmlns_push = "urn:xmpp:push:0"; |
| 12 | 12 |
| 13 -- configuration | 13 -- configuration |
| 14 local include_body = module:get_option("push_notification_with_body", false); | 14 local include_body = module:get_option_boolean("push_notification_with_body", false); |
| 15 local include_sender = module:get_option("push_notification_with_sender", false); | 15 local include_sender = module:get_option_boolean("push_notification_with_sender", false); |
| 16 | 16 |
| 17 -- For keeping state across reloads | 17 -- For keeping state across reloads |
| 18 local push_enabled = module:open_store(); | 18 local push_enabled = module:open_store(); |
| 19 -- TODO map store would be better here | 19 -- TODO map store would be better here |
| 20 | 20 |
