Actually shutdown socket when !shutdown is called (admin.py)
This commit is contained in:
parent
9b44b6cd13
commit
e644888e3e
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue