stdout.write on success for !disconnect

This commit is contained in:
jesopo 2019-05-22 08:50:05 +01:00
parent 3e1a478f77
commit 6ba3588294

View file

@ -81,6 +81,7 @@ class Module(ModuleManager.BaseModule):
server = self.bot.get_server_by_id(id) server = self.bot.get_server_by_id(id)
server.disconnect() server.disconnect()
self.bot.disconnect(server) self.bot.disconnect(server)
event["stdout"].write("Disconnected from %s" % alias)
@utils.hook("received.command.shutdown") @utils.hook("received.command.shutdown")
def shutdown(self, event): def shutdown(self, event):