Skip to content
Snippets Groups Projects
Commit aae1dd6c authored by red-agent's avatar red-agent
Browse files

Fixed an issue with the bare command prefix

parent d19df32c
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class CommandProcessor(object):
Try to process text as a command. Returns True if it has been processed
as a command and False otherwise.
"""
if not text.startswith(self.COMMAND_PREFIX):
if not (text.startswith(self.COMMAND_PREFIX) and len(text) > 1):
return False
body = text[len(self.COMMAND_PREFIX):]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment