comparison mod_cloud_notify/mod_cloud_notify.lua @ 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 c7389fe74de7
children b030e46ec640
comparison
equal deleted inserted replaced
1921:20ee32f620b9 1922:e170b11b60b8
36 return true; 36 return true;
37 end 37 end
38 local user_push_services = push_enabled[origin.username]; 38 local user_push_services = push_enabled[origin.username];
39 if not user_push_services then 39 if not user_push_services then
40 user_push_services = {}; 40 user_push_services = {};
41 push_enabled[origin.username] = user_push_services;
41 end 42 end
42 user_push_services[push_jid .. "<" .. (push_node or "")] = { 43 user_push_services[push_jid .. "<" .. (push_node or "")] = {
43 jid = push_jid; 44 jid = push_jid;
44 node = push_node; 45 node = push_node;
45 count = 0; 46 count = 0;