From 61b90bd9e84b5f59018637dc5252edc12658ca38 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sun, 8 Apr 2018 18:07:05 +0300 Subject: [PATCH] fix --- stdplugins/ninja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/ninja.py b/stdplugins/ninja.py index 27efb77..afd527f 100644 --- a/stdplugins/ninja.py +++ b/stdplugins/ninja.py @@ -34,7 +34,7 @@ async def await_read(chat, message): @borg.on(util.admin_cmd(r"^\.(del)(?:ete)?$")) -@borg.on(util.admin_cmd(r"^\.(edit)\s+(.*)$")) +@borg.on(util.admin_cmd(r"^\.(edit)(?:\s+(.*))?$")) async def delete(event): await event.delete() command = event.pattern_match.group(1)