diff --git a/command.py b/command.py index 3e97a0a..c7135d3 100644 --- a/command.py +++ b/command.py @@ -21,7 +21,7 @@ class Command: @staticmethod def getCommand(string): words = Command.__getWords(string); - if words[0].startswith(Command.command_prefix): + if words[0].startswith(Command.command_prefix) and len(words) >= 0: return words[0][1:] return ""