make snip deletion permanent

This commit is contained in:
Tanuj 2018-06-01 01:29:51 +01:00
parent 5c175821a0
commit 34c8c2d682
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ async def on_snip_list(event):
@borg.on(events.NewMessage(pattern=r'.snipd (\S+)', outgoing=True))
async def on_snip_delete(event):
snips.pop(event.pattern_match.group(1), None)
storage.snips = snips
await event.delete()