Make keyhandler not crash on empty input

This commit is contained in:
Juhani Haverinen 2015-01-24 14:20:11 +02:00
parent 84b24aafe0
commit 90f88aedc4
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ class Keyhandler(threading.Thread):
while True:
line=raw_input()
c=line.split(' ')
if c == '':
continue
if c[0] in botcmd.concmd:
botcmd.execcmd(c)
if c[0]=='/j' and len(c)==2: