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

@ -3,6 +3,8 @@
## Main branch
- Feat: EvMenu tooltips for multiple help categories in a node (Seannio).
- Feat: Default `examine` command now also shows an account's `last_login`
(michaelfaith84)
- Fix: Portal would accidentally start global scripts. (InspectorCaracal)
- Fix: Traceback when printing CounterTrait contrib objects. (InspectorCaracal)
- Fix: Typo in evadventure twitch combat's call of `create_combathandler`.

View file

@ -3,6 +3,8 @@
## Main branch
- Feat: EvMenu tooltips for multiple help categories in a node (Seannio).
- Feat: Default `examine` command now also shows an account's `last_login`
(michaelfaith84)
- Fix: Portal would accidentally start global scripts. (InspectorCaracal)
- Fix: Traceback when printing CounterTrait contrib objects. (InspectorCaracal)
- Fix: Typo in evadventure twitch combat's call of `create_combathandler`.

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})"