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)