mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
More case-sensitivity stuff. Also remove player's dbref from first connection welcome message.
This commit is contained in:
parent
9221f889e3
commit
756ac8dfe1
1 changed files with 4 additions and 4 deletions
|
|
@ -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),))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue