.BANCHO. .HIDE. General refactoring

This commit is contained in:
Nyo
2016-12-10 19:31:12 +01:00
parent 8532731f19
commit c4a6c84cec
3 changed files with 4 additions and 7 deletions

View File

@@ -136,7 +136,7 @@ class Client:
self.server.removeClient(self, quitmsg)
# Bancho logout
if callLogout:
if callLogout and self.banchoUsername != "":
chat.IRCDisconnect(self.IRCUsername)
@@ -669,7 +669,7 @@ class Server:
try:
self.clients[conn] = Client(self, conn)
log.info("[IRC] Accepted connection from {}:{}".format(addr[0], addr[1]))
except socket.error as e:
except socket.error:
try:
conn.close()
except: