From 34c8c2d682bacb17ed5675e3d5e586ecec0dd979 Mon Sep 17 00:00:00 2001 From: Tanuj Date: Fri, 1 Jun 2018 01:29:51 +0100 Subject: [PATCH] make snip deletion permanent --- stdplugins/snip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stdplugins/snip.py b/stdplugins/snip.py index acaac59..dd9d905 100644 --- a/stdplugins/snip.py +++ b/stdplugins/snip.py @@ -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()