Do an instant reconnect for !reconnect in modules/admin.py

This commit is contained in:
jesopo 2018-11-05 20:03:45 +00:00
parent 8b1e1fbb2e
commit f0f2701386

View file

@ -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):