mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Handle IRC input without a channel (eg, QUIT)
This commit is contained in:
parent
fac37aa80b
commit
cf05473c2c
1 changed files with 4 additions and 1 deletions
|
@ -330,7 +330,10 @@ def IRCLoop(on_idle,on_identified,on_command):
|
||||||
parts = cparts[0].split(' ')
|
parts = cparts[0].split(' ')
|
||||||
who = parts[0]
|
who = parts[0]
|
||||||
action = parts[1]
|
action = parts[1]
|
||||||
|
if len(parts) >= 3:
|
||||||
chan = parts[2]
|
chan = parts[2]
|
||||||
|
else:
|
||||||
|
chan = None
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log_error('main parser: Exception, continuing: %s' % str(e))
|
log_error('main parser: Exception, continuing: %s' % str(e))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue