From 90f88aedc420ae978a91441363a5f83b6ecda009 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Sat, 24 Jan 2015 14:20:11 +0200 Subject: [PATCH] Make keyhandler not crash on empty input --- ircbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ircbot.py b/ircbot.py index 3ca35bd..149963b 100755 --- a/ircbot.py +++ b/ircbot.py @@ -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: