support old time format

This commit is contained in:
Stefan Hagen 2023-12-24 15:17:31 +01:00
parent 5fc4633a80
commit af4c0c5040

View File

@ -146,7 +146,12 @@ seen() {
_ts="$(echo "$_l" | cut -d" " -f1)"
_msg="$(echo "$_l" | cut -d" " -f2-)"
_dt="$(date -r "$_ts" +"%Y-%m-%d %H:%M")"
say "$_dt: $_msg"
if [ -z $_dt ]
then
say "$_l"
else
say "$_dt: $_msg"
fi
else
say "Hmm, ich habe keine Ahnung wann $1 zum letzten mal online war."
fi