This commit is contained in:
Alfredo Cardigliano 2024-08-07 16:03:53 +02:00
parent 8220a92177
commit a4d28d59f2
6 changed files with 33 additions and 61 deletions

View file

@ -138,6 +138,7 @@ function shell.dequeueRecipientAlerts(recipient, budget)
local budget_used = 0
local MAX_ALERTS_PER_REQUEST = 1
local return_msg = {}
-- Dequeue alerts up to budget x MAX_ALERTS_PER_REQUEST
-- Note: in this case budget is the number of script messages to send
while budget_used <= budget and more_available do