mod_cloud_notify/mod_cloud_notify.lua
changeset 2262 3abc51faf945
parent 2261 f84b51f9aa82
child 2263 e0808be13d77
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:34:15 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:35:57 2016 +0200
@@ -38,6 +38,10 @@
 		return true;
 	end
 	local publish_options = enable:get_child("x", "jabber:x:data");
+	if not publish_options then
+		-- Could be intentional
+		origin.log("debug", "No publish options in request");
+	end
 	local user_push_services = push_enabled:get(origin.username);
 	if not user_push_services then
 		user_push_services = {};