changeset 1922:e170b11b60b8

mod_cloud_notify: Save list of push services
author Kim Alvefur <zash@zash.se>
date Fri, 23 Oct 2015 15:50:13 +0200
parents 20ee32f620b9
children b030e46ec640
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Oct 22 15:56:11 2015 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Fri Oct 23 15:50:13 2015 +0200
@@ -38,6 +38,7 @@
 	local user_push_services = push_enabled[origin.username];
 	if not user_push_services then
 		user_push_services = {};
+		push_enabled[origin.username] = user_push_services;
 	end
 	user_push_services[push_jid .. "<" .. (push_node or "")] = {
 		jid = push_jid;