From e644888e3e23a1e2c2722e4f96aa929e062438b5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 11 Feb 2019 10:00:55 +0000 Subject: [PATCH] Actually shutdown socket when !shutdown is called (admin.py) --- modules/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/admin.py b/modules/admin.py index c07229f5..63f9d738 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -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)