mirror of
https://github.com/wownero/tippero.git
synced 2026-10-17 15:51:33 +02:00
Handle IRC input without a channel (eg, QUIT)
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user