Diff

mod_cloud_notify/mod_cloud_notify.lua @ 4712:48d7a5c16f2b

mod_cloud_notify: Fix some minor luacheck offences
author Matthew Wild <mwild1@gmail.com>
date Mon, 18 Oct 2021 11:43:48 +0100
parent 4698:4157773ed4d3
child 4713:ae3a129cc296
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Sun Oct 17 23:25:25 2021 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Mon Oct 18 11:43:48 2021 +0100
@@ -404,7 +404,7 @@
 end, 1);
 
 -- publish on bare groupchat
--- this picks up MUC messages when there are no devices connected 
+-- this picks up MUC messages when there are no devices connected
 module:hook("message/bare/groupchat", function(event)
 	module:log("debug", "Invoking cloud handle_notify_request() for bare groupchat stanza");
 	local node, user_push_services = get_push_settings(event.stanza, event.origin);
@@ -505,9 +505,9 @@
 	if not session.push_identifier then return; end
 	if stanza then process_stanza(session, stanza); return; end		-- don't iterate through smacks queue if we know which stanza triggered this
 	for i=1, #queue do
-		local stanza = queue[i];
+		local queued_stanza = queue[i];
 		-- process unacked stanzas (handle_notify_request() will only send push requests for new stanzas)
-		process_stanza(session, stanza);
+		process_stanza(session, queued_stanza);
 	end
 end