From 28912a4c993774ec06be71bdd8c70e9ba476c58a Mon Sep 17 00:00:00 2001 From: Adam_ASE Date: Fri, 28 Sep 2012 23:41:07 -0400 Subject: [PATCH 1/2] 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 c9dd4cec5b..16181692a6 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!" From d32cf378209666db39c5f371c0f19d93475225ce Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 29 Sep 2012 09:35:25 +0200 Subject: [PATCH 2/2] ev was missing a line causing default admin commands to not be included. Resolves Issue 270. --- ev.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ev.py b/ev.py index bb00d8cc8b..8ad683a000 100644 --- a/ev.py +++ b/ev.py @@ -194,6 +194,7 @@ class DefaultCmds(object): self.__dict__.update(dict([(c.__name__, c) for c in cmdlist])) from src.commands.default import admin, batchprocess, building, comms, general, help, system, unloggedin + add_cmds(admin) add_cmds(building) add_cmds(batchprocess) add_cmds(building)