From 756ac8dfe1483e9936c6e50a0d2a1b638611f7c3 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Fri, 18 May 2007 13:44:21 +0000 Subject: [PATCH] More case-sensitivity stuff. Also remove player's dbref from first connection welcome message. --- functions_db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions_db.py b/functions_db.py index 061ed324d6..0766662fb9 100644 --- a/functions_db.py +++ b/functions_db.py @@ -19,13 +19,13 @@ def is_unsavable_flag(flagname): """ Returns TRUE if the flag is an unsavable flag. """ - return flagname in global_defines.NOSAVE_FLAGS + return flagname.upper() in global_defines.NOSAVE_FLAGS def is_modifiable_flag(flagname): """ Check to see if a particular flag is modifiable. """ - if flagname not in global_defines.NOSET_FLAGS: + if flagname.upper() not in global_defines.NOSET_FLAGS: return True else: return False @@ -36,7 +36,7 @@ def is_modifiable_attrib(attribname): attribname: (string) An attribute name to check. """ - if attribname not in global_defines.NOSET_ATTRIBS: + if attribname.upper() not in global_defines.NOSET_ATTRIBS: return True else: return False @@ -281,4 +281,4 @@ def create_user(cdat, uname, email, password): # Activate the player's session and set them loose. session.login(user) print 'Registration: %s' % (session,) - session.push("Welcome to %s, %s.\n\r" % (gameconf.get_configvalue('site_name'), session.get_pobject().get_name(),)) + session.push("Welcome to %s, %s.\n\r" % (gameconf.get_configvalue('site_name'), session.get_pobject().get_name(show_dbref=False),))