Relocate checking_new_account_name menu functions
[mudpy.git] / mudpy / menu.py
index 1bdccb0..e67dd04 100644 (file)
@@ -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()