diff --git a/src/command_system/framework.py b/src/command_system/framework.py index 3faa9ea68d74cc13b4a75ce9fa78a4464dd37247..a7f39178185ce41f8d97665a397b5222c03f8a1c 100644 --- a/src/command_system/framework.py +++ b/src/command_system/framework.py @@ -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):]