fix message formating

This commit is contained in:
Simon-Pierre 2026-05-22 08:38:31 -04:00
parent aa295ccfab
commit 8672b30445
No known key found for this signature in database
GPG Key ID: C9458A8CB1852951

View File

@ -115,9 +115,9 @@ proc encode*(message: Chat2Message): ProtoBuffer =
return serialised
proc toString*(message: Chat2Message): string =
let time = message.timestamp.fromUnix().local().format("'<'MMM' 'dd,' 'HH:mm'>'")
return time & " " & message.nick & ": " & string.fromBytes(message.payload)
proc `$`*(message: Chat2Message): string =
let time = message.timestamp.fromUnix().local().format("HH:mm")
return time & "->" & message.nick & ": " & string.fromBytes(message.payload)
#####################