Skip to content

Commit

Permalink
Update pmpermit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StarkGang authored Jun 1, 2021
1 parent 304bf7f commit 09c1010
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/pmpermit.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,5 +357,8 @@ async def pmPermit(client, message):
user_firstname=user_firstname, warns=warnings_got, boss_firstname=me_f, mention=user_mention),
)
if int(message.chat.id) in OLD_MSG:
await OLD_MSG[int(message.chat.id)].delete()
try:
await OLD_MSG[int(message.chat.id)].delete()
except:
pass
OLD_MSG[int(message.chat.id)] = holy

0 comments on commit 09c1010

Please sign in to comment.