Handle IRC input without a channel (eg, QUIT)

This commit is contained in:
moneromooo 2015-01-15 11:21:16 +00:00
parent fac37aa80b
commit cf05473c2c

View file

@ -330,7 +330,10 @@ def IRCLoop(on_idle,on_identified,on_command):
parts = cparts[0].split(' ')
who = parts[0]
action = parts[1]
chan = parts[2]
if len(parts) >= 3:
chan = parts[2]
else:
chan = None
except Exception, e:
log_error('main parser: Exception, continuing: %s' % str(e))
continue