Software / code / prosody-modules
Comparison
mod_cloud_notify/mod_cloud_notify.lua @ 2051:cb0fc00a7086
mod_cloud_notify: Fix syntax error
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 18 Feb 2016 22:38:53 +0100 |
| parent | 2050:49cc6a555dc7 |
| child | 2141:218a3d3f7f97 |
comparison
equal
deleted
inserted
replaced
| 2050:49cc6a555dc7 | 2051:cb0fc00a7086 |
|---|---|
| 89 push_info.count = push_info.count + 1; | 89 push_info.count = push_info.count + 1; |
| 90 local push_jid, push_node = push_info.jid, push_info.node; | 90 local push_jid, push_node = push_info.jid, push_info.node; |
| 91 local push_publish = st.iq({ to = push_jid, from = node .. "@" .. module.host, type = "set", id = "push" }) | 91 local push_publish = st.iq({ to = push_jid, from = node .. "@" .. module.host, type = "set", id = "push" }) |
| 92 :tag("pubsub", { xmlns = "http://jabber.org/protocol/pubsub" }) | 92 :tag("pubsub", { xmlns = "http://jabber.org/protocol/pubsub" }) |
| 93 :tag("publish", { node = push_node }) | 93 :tag("publish", { node = push_node }) |
| 94 :tag("item"); | 94 :tag("item") |
| 95 :tag("notification", { xmlns = xmlns_push }); | 95 :tag("notification", { xmlns = xmlns_push }); |
| 96 local form_data = { | 96 local form_data = { |
| 97 ["message-count"] = tostring(push_info.count); | 97 ["message-count"] = tostring(push_info.count); |
| 98 }; | 98 }; |
| 99 if include_sender then | 99 if include_sender then |