mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Stop color leak in examine's last_login output
This commit is contained in:
parent
0522051bb4
commit
1c7cc201e4
3 changed files with 5 additions and 1 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -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})"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue