Talk can now display a timestamp at the end of messages. Settings flag %showtime.

This commit is contained in:
Fang 2016-12-02 22:06:16 +01:00 committed by Raymond Pasco
parent 63d2d970a8
commit 18afd44cd1

View File

@ -293,6 +293,7 @@
%- perk :~
%noob
%quiet
%showtime
==
++ work
%+ knee *^work |. ~+
@ -2114,6 +2115,15 @@
?. (~(has in sef) %noob)
(~(sn-curt sn man [who (main who)]) |)
(~(sn-nick sn man [who (main who)]))
?: (~(has in sef) %showtime)
=+ dat=(yore now.hid)
=+ ^= t
|= a/@ ^- tape
%+ weld
?: (lth a 10) "0" ~
(scow %ud a)
=+ ^= time :(weld "~" (t h.t.dat) "." (t m.t.dat) "." (t s.t.dat))
:(weld baw txt (reap (sub 67 (lent txt)) ' ') time)
(weld baw txt)
::
++ tr-meta ^- tang