Merge branch 'bug/motd-obfuscation' into 'dev'

Fix motd jumping with obfuscation

See merge request crafty-controller/crafty-4!572
This commit is contained in:
Iain Powrie 2023-04-02 16:48:20 +00:00
commit 7fec82d959
2 changed files with 1 additions and 2 deletions

View File

@ -4,6 +4,7 @@
TBD
### Bug fixes
- Fix dashboard crash for users without disks or if crafty doesn't have permission to access mount point ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/571))
- Strip Minecraft motd obfuscation chars to prevent text jumping on dashboard ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/572))
### Tweaks
- Improve logging on tz failures ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/569))
- Add fallback for ping domain to provide better feedback on internet connection ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/570))

View File

@ -40,8 +40,6 @@ class Server:
lines.append(get_code_format("underlined"))
if "strikethrough" in e.keys():
lines.append(get_code_format("strikethrough"))
if "obfuscated" in e.keys():
lines.append(get_code_format("obfuscated"))
if "color" in e.keys():
lines.append(get_code_format(e["color"]))
# Then append the text