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()]
|
del self.servers[server.fileno()]
|
||||||
|
|
||||||
def reconnect(self, event):
|
def reconnect(self, event):
|
||||||
server_details = self.database.servers.get(event["server_id"])
|
server = self.add_server(event["server_id"], 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
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue