diff options
| author | 2019-02-11 10:00:55 +0000 | |
|---|---|---|
| committer | 2019-02-11 10:00:55 +0000 | |
| commit | e644888e3e23a1e2c2722e4f96aa929e062438b5 (patch) | |
| tree | 7f1a4d83ab979d4314cc423dc357f5f7cc3f922b /modules/admin.py | |
| parent | Shift socket.socket related logic to IRCSocket.py (diff) | |
| signature | ||
Actually shutdown socket when !shutdown is called (admin.py)
Diffstat (limited to 'modules/admin.py')
| -rw-r--r-- | modules/admin.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
