1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

🔧 Remove ! from the command

This commit is contained in:
Steffo 2021-01-10 19:54:47 +01:00
parent 3cf145aa34
commit dbb49f214f
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -81,9 +81,9 @@ class ConsolePDA:
"""
log.debug(f"Completing partial: {part!r}")
if part.syntax:
command = part.complete(pattern=r"^!{name}\s+{syntax}$", names=names)
command = part.complete(pattern=r"^{name}\s+{syntax}$", names=names)
else:
command = part.complete(pattern=r"^!{name}$", names=names)
command = part.complete(pattern=r"^{name}$", names=names)
self.register_conversation(command)
return command