Change IRCBot.reconnect to only pass server_id to IRCBot.add_server

This commit is contained in:
jesopo 2018-09-27 10:22:57 +01:00
parent 9a7b93928b
commit 6b01c8bb04

View file

@ -132,8 +132,7 @@ class Bot(object):
del self.servers[server.fileno()]
def reconnect(self, event):
server_details = self.database.servers.get(event["server_id"])
server = self.add_server(*(server_details + (False,)))
server = self.add_server(event["server_id"], False)
if self.connect(server):
self.servers[server.fileno()] = server
else: