Fix home kwarg not being honored by Character.create

This commit is contained in:
Griatch 2020-03-23 23:44:32 +01:00
parent b1e1e75088
commit dd13a3e2e0
2 changed files with 2 additions and 5 deletions

View file

@ -2066,9 +2066,6 @@ class DefaultCharacter(DefaultObject):
# Set the supplied key as the name of the intended object
kwargs["key"] = key
# Get home for character
kwargs["home"] = ObjectDB.objects.get_id(kwargs.get("home", settings.DEFAULT_HOME))
# Get permissions
kwargs["permissions"] = kwargs.get("permissions", settings.PERMISSION_ACCOUNT_DEFAULT)

View file

@ -486,8 +486,8 @@ def create_account(
Args:
key (str): The account's name. This should be unique.
email (str or None): Email on valid addr@addr.domain form. If
the empty string, will be set to None.
email (str or None): Email on valid addr@addr.domain form. If
the empty string, will be set to None.
password (str): Password in cleartext.
Kwargs: