From 220fb47e890f51e703dd2f8de16b238c50d22cff Mon Sep 17 00:00:00 2001 From: trhr Date: Thu, 16 Apr 2020 05:57:51 -0500 Subject: [PATCH] fixing fstring --- evennia/accounts/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/accounts/accounts.py b/evennia/accounts/accounts.py index 1f41b577da..1a7260d947 100644 --- a/evennia/accounts/accounts.py +++ b/evennia/accounts/accounts.py @@ -1253,7 +1253,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase): if session: session.msg(logged_in={}) - self._send_to_connect_channel(f"|G{self.key} connected|n") + self._send_to_connect_channel(_("|G{key} connected|n".format(key=self.key))) if _MULTISESSION_MODE == 0: # in this mode we should have only one character available. We # try to auto-connect to our last conneted object, if any @@ -1305,7 +1305,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase): """ reason = f" ({reason if reason else ''})" - self._send_to_connect_channel(_("|R{key} disconnected{reason}|n".format(key=self.key))) + self._send_to_connect_channel(_("|R{key} disconnected{reason}|n".format(key=self.key, reason=reason))) def at_post_disconnect(self, **kwargs): """