From 0a91aa6e173e290450a9391a0cf9a730e0190b69 Mon Sep 17 00:00:00 2001 From: HarHar Date: Fri, 25 Jan 2013 18:41:08 -0200 Subject: [PATCH] [irc] change "bot" to "self and fix identation --- syncplay/ircBot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/ircBot.py b/syncplay/ircBot.py index 6d3076c..e52fdde 100644 --- a/syncplay/ircBot.py +++ b/syncplay/ircBot.py @@ -76,7 +76,7 @@ class Bot(object): try: self.sock.send(s.encode('utf8') + '\r\n') except socket.error, info: - bot.active = False + self.active = False print '\033[91mSocket error (bot disconnected)\033[0;0m ' + str(info) break def msg(self, who, message): @@ -146,7 +146,7 @@ class Bot(object): out += u['file'] break else: - out += '[no file]' + out += '[no file]' self.msg(to, out) out = 'Users: ' i = 0