Update IRCServer.__repr__ to use connection_params
This commit is contained in:
parent
afce01d0f8
commit
9571c3f9fa
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue