X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmenu.py;h=e67dd04285be82f7d1a846ca81facd5c8df3e567;hp=1bdccb02fe27c566a23104ba93deeaf9ddc57b64;hb=3241aeff1158a0c517bcc213f876b6b10ca03f41;hpb=1e22e0aca6b5804bfcde8eccaafabd46aab8a146 diff --git a/mudpy/menu.py b/mudpy/menu.py index 1bdccb0..e67dd04 100644 --- a/mudpy/menu.py +++ b/mudpy/menu.py @@ -19,3 +19,13 @@ def activate_avatar_create(user): """List available avatars as choices for the activate_avatar state.""" return dict( [(str(x + 1), y) for x, y in enumerate(user.list_avatar_names())]) + + +def checking_new_account_name_action_d(user): + """Destroy the new account because the user asked to disconnect.""" + return user.account.destroy() + + +def checking_new_account_name_action_g(user): + """Destroy the new account, the user asked to go back to name entry.""" + return user.account.destroy()