Update IRCServer.__repr__ to use connection_params

This commit is contained in:
jesopo 2018-11-05 20:18:06 +00:00
parent afce01d0f8
commit 9571c3f9fa

View file

@ -60,7 +60,8 @@ class Server(IRCObject.Object):
if self.alias: if self.alias:
return self.alias return self.alias
return "%s:%s%s" % (self.connection_params.hostname, return "%s:%s%s" % (self.connection_params.hostname,
"+" if self.tls else "", self.port) "+" if self.connection_params.tls else "",
self.connection_params.port)
def fileno(self): def fileno(self):
return self.cached_fileno or self.socket.fileno() return self.cached_fileno or self.socket.fileno()