diff --git a/evennia/accounts/bots.py b/evennia/accounts/bots.py index 18043a9a52..680d8bcbd4 100644 --- a/evennia/accounts/bots.py +++ b/evennia/accounts/bots.py @@ -104,7 +104,7 @@ class Bot(DefaultAccount): "boot:perm(Admin);msg:false();noidletimeout:true()" self.locks.add(lockstring) # set the basics of being a bot - script_key = f"{str(self.key)}" + script_key = str(self.key) self.scripts.add(BotStarter, key=script_key) self.is_bot = True diff --git a/evennia/accounts/manager.py b/evennia/accounts/manager.py index f5f34f1aac..c617b97a38 100644 --- a/evennia/accounts/manager.py +++ b/evennia/accounts/manager.py @@ -166,7 +166,7 @@ class AccountDBManager(TypedObjectManager, UserManager): if callable(typeclass): typeclass = f"{typeclass.__module__}.{typeclass.__name__}" else: - typeclass = f"{str(typeclass)}" + typeclass = fstr(typeclass) query["db_typeclass_path"] = typeclass if exact: matches = self.filter(**query)