fix for messages only containing whitespaces

This commit is contained in:
Stefan Müller 2016-01-06 19:56:30 +01:00
parent 36eda158f2
commit 41030d5499
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -45,7 +45,7 @@ class Bot():
args = message.strip().split(" ")
cmd = args.pop(0)
if cmd[0] == '\\':
if len(cmd) > 0 and cmd[0] == '\\':
try:
self.call(cmd[1:], args)
except KeyError: