Make keyhandler not crash on empty input
This commit is contained in:
parent
84b24aafe0
commit
90f88aedc4
|
@ -132,6 +132,8 @@ class Keyhandler(threading.Thread):
|
||||||
while True:
|
while True:
|
||||||
line=raw_input()
|
line=raw_input()
|
||||||
c=line.split(' ')
|
c=line.split(' ')
|
||||||
|
if c == '':
|
||||||
|
continue
|
||||||
if c[0] in botcmd.concmd:
|
if c[0] in botcmd.concmd:
|
||||||
botcmd.execcmd(c)
|
botcmd.execcmd(c)
|
||||||
if c[0]=='/j' and len(c)==2:
|
if c[0]=='/j' and len(c)==2:
|
||||||
|
|
Loading…
Reference in New Issue