Do an instant reconnect for !reconnect in modules/admin.py
This commit is contained in:
parent
8b1e1fbb2e
commit
f0f2701386
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ class Module(ModuleManager.BaseModule):
|
|||
:permission: reconnect
|
||||
"""
|
||||
event["server"].send_quit("Reconnecting")
|
||||
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