Actually shutdown socket when !shutdown is called (admin.py)

This commit is contained in:
jesopo 2019-02-11 10:00:55 +00:00
parent 9b44b6cd13
commit e644888e3e

View file

@ -100,4 +100,6 @@ class Module(ModuleManager.BaseModule):
line = server.send_quit(reason)
line.on_send(self._shutdown_hook(server))
def _shutdown_hook(self, server):
return lambda: self.bot.disconnect(server)
def shutdown():
server.disconnect()
self.bot.disconnect(server)