Comparison

mod_push2/mod_push2.lua @ 6034:b4bf44765ce6

mod_push2: fix some log lines
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Fri, 01 Nov 2024 11:08:06 -0500
parent 6033:8cb37a497e4c
child 6035:9b50ee822638
comparison
equal deleted inserted replaced
6033:8cb37a497e4c 6034:b4bf44765ce6
281 notify_push_services = user_push_services 281 notify_push_services = user_push_services
282 else 282 else
283 for identifier, push_info in pairs(user_push_services) do 283 for identifier, push_info in pairs(user_push_services) do
284 for _, match in ipairs(push_info.matches) do 284 for _, match in ipairs(push_info.matches) do
285 if match.match == "urn:xmpp:push2:match:important" then 285 if match.match == "urn:xmpp:push2:match:important" then
286 identifier_found.log("debug", "Not pushing because not important") 286 module:log("debug", "Not pushing because not important")
287 else 287 else
288 notify_push_services[identifier] = push_info; 288 notify_push_services[identifier] = push_info;
289 end 289 end
290 end 290 end
291 end 291 end
534 identifier_found = session; 534 identifier_found = session;
535 break; 535 break;
536 end 536 end
537 end 537 end
538 if identifier_found then 538 if identifier_found then
539 identifier_found.log("debug", "Not pushing '%s' of new MAM stanza (session still alive)", identifier) 539 module:log("debug", "Not pushing '%s' of new MAM stanza (session still alive)", identifier)
540 else 540 else
541 notify_push_services[identifier] = push_info 541 notify_push_services[identifier] = push_info
542 end 542 end
543 end 543 end
544 end 544 end