mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 10:37:16 +01:00
fixing fstring
This commit is contained in:
parent
5c51bb7e97
commit
220fb47e89
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue