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
|
: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):
|
||||||
|
|
Loading…
Reference in a new issue