mod_cloud_notify/mod_cloud_notify.lua
changeset 1912 eba279ddc050
parent 1911 7fe7bd7b33b6
child 1913 c7389fe74de7
--- 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)