def func(self):
        self.menutree.goto("END")
        self.caller.sessionhandler.disconnect(self.caller, "Good bye! Disconnecting...")


# The login menu tree, using the commands above
Simply close the connection.
dataset/ETHPy150Open evennia/evennia/evennia/contrib/menu_login.py/CmdUnloggedinQuit.func