# HG changeset patch # User Kim Alvefur # Date 1444824428 -7200 # Node ID eba279ddc05091e0a6753ef6a128884fef48409d # Parent 7fe7bd7b33b6ffa4dffcd31f9b49f9aeb7c2792b mod_cloud_notify: Add some comments describing code blocks diff -r 7fe7bd7b33b6 -r eba279ddc050 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Wed Oct 14 13:41:03 2015 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Wed Oct 14 14:07:08 2015 +0200 @@ -9,9 +9,11 @@ local xmlns_push = "urn:xmpp:push:0"; -module:add_feature(xmlns_push); +-- For keeping state across reloads +local push_enabled = module:shared("push-enabled-users"); -local push_enabled = module:shared("push-enabled-users"); +-- http://xmpp.org/extensions/xep-0357.html#disco +module:add_feature(xmlns_push); -- http://xmpp.org/extensions/xep-0357.html#enabling module:hook("iq-set/self/"..xmlns_push..":enable", function (event)