Skip to content

Commit dd23edf

Browse files
committed
Fix bug where cancelled still attempts to start thread
1 parent 4d65cab commit dd23edf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cogs/modmail.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,9 @@ async def contact(
10321032
category=category,
10331033
manual_trigger=manual_trigger,
10341034
)
1035+
if thread.cancelled:
1036+
return
1037+
10351038
if self.bot.config["dm_disabled"] in (DMDisabled.NEW_THREADS, DMDisabled.ALL_THREADS):
10361039
logger.info("Contacting user %s when Modmail DM is disabled.", user)
10371040

0 commit comments

Comments
 (0)