fixed a part of the reconnection logic.

This commit is contained in:
jesopo 2016-04-13 14:55:19 +01:00
parent 190d42fbb5
commit a2cde2ff18
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -70,7 +70,7 @@ class Bot(object):
del self.servers[server.fileno()]
def reconnect(self, timer, server):
IRCServer.Server.__init__(server, server.id, server.hostname,
IRCServer.Server.__init__(server, server.id, server.target_hostname,
server.port, server.password, server.ipv4, server.tls,
server.nickname, server.username, server.realname, self)
if self.connect(server):