diff options
| author | 2020-08-15 09:55:43 -0700 | |
|---|---|---|
| committer | 2020-08-15 09:55:43 -0700 | |
| commit | 7cd29c72c0c074680d63740b79b388da95a50de5 (patch) | |
| tree | f0309642e85eae3718f13cfdeeed0fad9591fd42 /tests/base.py | |
| parent | Merge 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/base.py')
0 files changed, 0 insertions, 0 deletions