.BANCHO. .FIX. Fixed some missing references, code cleaning

This commit is contained in:
Nyo
2016-10-02 23:11:18 +02:00
parent 8173ff3bb6
commit 7fcc9bca5e
7 changed files with 7 additions and 68 deletions

View File

@@ -146,7 +146,7 @@ class Client:
quitmsg = "EOT"
except socket.error as x:
# Error while reading data, this client will be disconnected
data = ""
data = bytes()
quitmsg = x
if data:
@@ -204,7 +204,7 @@ class Client:
log.debug("[IRC] [{}:{}] <- {}".format(self.ip, self.port, self.__writebuffer[:sent]))
self.__writebuffer = self.__writebuffer[sent:]
except socket.error as x:
self.disconnect(x)
self.disconnect(str(x))
def checkAlive(self):