diff options
| author | 2021-04-09 18:52:01 -0700 | |
|---|---|---|
| committer | 2021-04-09 19:48:46 -0700 | |
| commit | b38e645a66b76693ebc0cf0febc63187ab7a8b2f (patch) | |
| tree | bcc759b4699934a9d048cfe1f8ee6a4f06be03f2 /tests/base.py | |
| parent | Merge 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/base.py')
0 files changed, 0 insertions, 0 deletions