Fixed error when message contains only image.
This commit is contained in:
parent
cfd15e7dda
commit
476215312b
@ -21,7 +21,7 @@ class Command:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def getCommand(string):
|
def getCommand(string):
|
||||||
words = Command.__getWords(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 words[0][1:]
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user