aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-04-09 18:52:01 -0700
committerGravatar MarkKoz <[email protected]>2021-04-09 19:48:46 -0700
commitb38e645a66b76693ebc0cf0febc63187ab7a8b2f (patch)
treebcc759b4699934a9d048cfe1f8ee6a4f06be03f2 /tests
parentMerge pull request #1511 from onerandomusername/defcon-voice-shutdown (diff)
AntiSpam: prevent attempts to punish a user multiple times
A user may manage to send multiple message that violate filters before the mute is applied. Because of a race condition, subsequent punish attempts did not detect the mute role exists and therefore proceeded to apply another mute. To avoid the race condition, abort any subsequent punish attempts while one is already ongoing for a given user. It could be possible to wait instead of abort, but the first attempt failing very likely means subsequent attempts would fail too. Fixes #902
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions