aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-15 09:55:43 -0700
committerGravatar MarkKoz <[email protected]>2020-08-15 09:55:43 -0700
commit7cd29c72c0c074680d63740b79b388da95a50de5 (patch)
treef0309642e85eae3718f13cfdeeed0fad9591fd42 /tests/__init__.py
parentMerge pull request #1102 from AtieP/patch-1 (diff)
Don't patch ctx.message.author in antispam
The modification propagated across all code that is using the same `Message` object, including all other `on_message` listeners. This caused weird bugs e.g. the filtering cog thinking the bot authored a message that triggered a filter. Patching only `ctx.author` means the implementation is more fragile. Infraction code must ensure it only retrieves the author via `ctx.author` and not through `ctx.message`. Fixes #1005 Fixes BOT-7D
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions