Stop color leak in examine's last_login output

This commit is contained in:
Griatch 2023-09-03 08:43:30 +02:00
parent 0522051bb4
commit 1c7cc201e4
3 changed files with 5 additions and 1 deletions

View file

@ -2550,7 +2550,7 @@ class CmdExamine(ObjManipCommand):
def format_last_login(self, obj):
if hasattr(obj, "last_login") and obj.last_login:
return f"{self.detail_color}{obj.last_login}"
return f"{self.detail_color}{obj.last_login}|n"
def format_account_key(self, account):
return f"{self.detail_color}{account.name}|n ({account.dbref})"