Utilise new line-tracking logic to reconnect when QUIT sends (admin.py)
This commit is contained in:
parent
d62b8c79fd
commit
709365ecf8
1 changed files with 3 additions and 3 deletions
|
@ -41,9 +41,9 @@ class Module(ModuleManager.BaseModule):
|
|||
:help: Reconnect to the current network
|
||||
:permission: reconnect
|
||||
"""
|
||||
event["server"].send_quit("Reconnecting")
|
||||
self.bot.reconnect(event["server"].id,
|
||||
event["server"].connection_params)
|
||||
line = event["server"].send_quit("Reconnecting")
|
||||
line.on_send(lambda: self.bot.reconnect(
|
||||
event["server"].id, event["server"].connection_params))
|
||||
|
||||
@utils.hook("received.command.connect", min_args=1)
|
||||
def connect(self, event):
|
||||
|
|
Loading…
Reference in a new issue