mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
Talk can now display a timestamp at the end of messages. Settings flag %showtime.
This commit is contained in:
parent
63d2d970a8
commit
18afd44cd1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user