Fix stacking warning reasons... (#129)

This commit is contained in:
Brandon Sturgeon 2023-09-20 17:54:32 -07:00 committed by GitHub
parent 944e78e04f
commit bc1ffe827b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,9 +128,9 @@ function AW.CommandWatcher( caller, commandName, args )
duration = duration and duration * 60
end
local warnReason = AW.buildReason( reason, commandName, duration )
for _, target in ipairs( targets ) do
reason = AW.buildReason( reason, commandName, duration )
AW.warn( caller, target, reason )
AW.warn( caller, target, warnReason )
end
end