mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-11 06:07:53 +00:00
[irc] change "bot" to "self and fix identation
This commit is contained in:
parent
e9db1408f5
commit
0a91aa6e17
@ -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):
|
||||||
@ -146,7 +146,7 @@ class Bot(object):
|
|||||||
out += u['file']
|
out += u['file']
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
out += '[no file]'
|
out += '[no file]'
|
||||||
self.msg(to, out)
|
self.msg(to, out)
|
||||||
out = 'Users: '
|
out = 'Users: '
|
||||||
i = 0
|
i = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user