Change IRCBot.reconnect to only pass server_id to IRCBot.add_server
This commit is contained in:
parent
9a7b93928b
commit
6b01c8bb04
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue