changeset 1908:eba279ddc050

mod_cloud_notify: Add some comments describing code blocks
author Kim Alvefur <zash@zash.se>
date Wed, 14 Oct 2015 14:07:08 +0200 (2015-10-14)
parents 7fe7bd7b33b6
children c7389fe74de7
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)