Utilise new line-tracking logic to reconnect when QUIT sends (admin.py)

This commit is contained in:
jesopo 2019-02-10 14:26:24 +00:00
parent d62b8c79fd
commit 709365ecf8

View file

@ -41,9 +41,9 @@ class Module(ModuleManager.BaseModule):
:help: Reconnect to the current network :help: Reconnect to the current network
:permission: reconnect :permission: reconnect
""" """
event["server"].send_quit("Reconnecting") line = event["server"].send_quit("Reconnecting")
self.bot.reconnect(event["server"].id, line.on_send(lambda: self.bot.reconnect(
event["server"].connection_params) event["server"].id, event["server"].connection_params))
@utils.hook("received.command.connect", min_args=1) @utils.hook("received.command.connect", min_args=1)
def connect(self, event): def connect(self, event):