Skip to content

Commit

Permalink
Increase spam threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidras committed Dec 3, 2024
1 parent 73220ee commit b17c1d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AllCheatersMustDie/AllCheatersMustDie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ local function antiCheat(_, _, prefix, message, channel, sender)
spamCount = 0
})

if #processor.timestamps > 25 then
if #processor.timestamps > 40 then
tremove(processor.timestamps, 1)
end

Expand All @@ -118,8 +118,8 @@ local function antiCheat(_, _, prefix, message, channel, sender)
processor.timestamps[tableIndex].spamCount = processor.spamCount -- add spamCount to the timestamps table for logging purposes

-- check for potential attack
-- if event counter is greater than 20, add to cheaters list
if processor.spamCount > 20 then
-- if event counter is greater than 50, add to cheaters list
if processor.spamCount > 50 then
AllCheatersMustDieDB.cheaters[sender] = processor -- add cheater and log to database
tinsert(tempCheaters, sender) -- needed because IsIgnored API was not returning in real time
AddIgnore(sender)
Expand Down

0 comments on commit b17c1d0

Please sign in to comment.