[irc] fix IndexError exception

This commit is contained in:
HarHar 2013-01-24 20:49:52 -02:00
parent b81f24ae17
commit bd30e67a66

View File

@ -175,6 +175,7 @@ def handlingThread(sock, bot):
lsplit = line.split(':') lsplit = line.split(':')
if len(lsplit) >= 2: if len(lsplit) >= 2:
if lsplit[1].split(' ') > 1:
if lsplit[1].split(' ')[1] == '404': if lsplit[1].split(' ')[1] == '404':
bot.join(bot.channel, bot.channelPassword) bot.join(bot.channel, bot.channelPassword)