From 28912a4c993774ec06be71bdd8c70e9ba476c58a Mon Sep 17 00:00:00 2001 From: Adam_ASE Date: Fri, 28 Sep 2012 23:41:07 -0400 Subject: [PATCH] CmdUnconnectedCreate() in unloggedin.py was setting default character descriptions after character hooks and so overwriting attempts to set desc elsewhere. Added check to see if new_player.db.desc is already set. --- src/commands/default/unloggedin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/default/unloggedin.py b/src/commands/default/unloggedin.py index c9dd4cec5..16181692a 100644 --- a/src/commands/default/unloggedin.py +++ b/src/commands/default/unloggedin.py @@ -192,8 +192,9 @@ class CmdUnconnectedCreate(MuxCommand): (new_character.id, new_player.id)) - # set a default description - new_character.db.desc = "This is a Player." + # If no description is set, set a default description + if not new_character.db.desc: + new_character.db.desc = "This is a Player." # tell the caller everything went well. string = "A new account '%s' was created. Welcome!"