Fixed another reference to the old database structure

This commit is contained in:
jesopo 2018-08-08 10:33:00 +01:00
parent bb53f6f565
commit e6321abd55

View file

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