# HG changeset patch # User Matthew Wild # Date 1634553828 -3600 # Node ID 48d7a5c16f2b9313ff151e64a795855ad6ee7b3d # Parent 46ca47a12770f7b3da276f837bec07dfbe41732c mod_cloud_notify: Fix some minor luacheck offences diff -r 46ca47a12770 -r 48d7a5c16f2b mod_cloud_notify/mod_cloud_notify.lua --- 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