mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 06:46:31 +01:00
Make config values not case-sensitive.
This commit is contained in:
parent
6d8d280248
commit
fa4cc4cab3
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def get_configvalue(configname):
|
|||
Retrieve a configuration value.
|
||||
"""
|
||||
try:
|
||||
return ConfigValue.objects.get(conf_key=configname).conf_value
|
||||
return ConfigValue.objects.get(conf_key__iexact=configname).conf_value
|
||||
except:
|
||||
functions_general.log_errmsg("Unable to get config value for %s:\n%s" % (configname, (format_exc())))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue