[irc] change "bot" to "self and fix identation

This commit is contained in:
HarHar 2013-01-25 18:41:08 -02:00
parent e9db1408f5
commit 0a91aa6e17

View File

@ -76,7 +76,7 @@ class Bot(object):
try: try:
self.sock.send(s.encode('utf8') + '\r\n') self.sock.send(s.encode('utf8') + '\r\n')
except socket.error, info: except socket.error, info:
bot.active = False self.active = False
print '\033[91mSocket error (bot disconnected)\033[0;0m ' + str(info) print '\033[91mSocket error (bot disconnected)\033[0;0m ' + str(info)
break break
def msg(self, who, message): def msg(self, who, message):