From a807187b92d5100989fe5ff4ec9479aebbd68db0 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sun, 8 Apr 2018 18:03:35 +0300 Subject: [PATCH] Require whitespace before args in ninja --- stdplugins/ninja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/ninja.py b/stdplugins/ninja.py index 23fef4b..27efb77 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)(.*)$")) +@borg.on(util.admin_cmd(r"^\.(edit)\s+(.*)$")) async def delete(event): await event.delete() command = event.pattern_match.group(1)