Merge branch 'chat-minor' (#1807)

* chat-minor:
  drum: Ensure dojo prompt on-boot
  chat-hook: Improve reap printf readability
  chat-cli: Remove prep printf

Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
Jared Tobin 2019-10-09 20:44:30 +04:00
commit 7b193375da
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4
3 changed files with 15 additions and 6 deletions

View File

@ -83,7 +83,6 @@
::
++ prep
|= old=(unit state)
~& %chat-cli-prep
?^ old
[~ this(+<+ u.old)]
=^ moves this

View File

@ -258,8 +258,13 @@
?~ saw
[~ this]
?> ?=(^ wir)
~& %chat-hook-reap
[((slog u.saw) ~) this(synced (~(del by synced) t.wir))]
:_ this(synced (~(del by synced) t.wir))
%. ~
%- slog
:* leaf+"chat-hook failed subscribe on {(spud t.wir)}"
leaf+"stack trace:"
u.saw
==
::
++ chat-poke
|= act=chat-action

View File

@ -273,9 +273,14 @@
::
++ se-adit :: update servers
^+ .
:: ensure dojo connects after talk
=* dojo-on-top aor
%+ roll (sort ~(tap in ray) dojo-on-top)
%+ roll
:: ensure dojo is first in the list,
:: guaranteeing its display on-boot.
::
%+ sort ~(tap in ray)
|= [a=well:gall b=well:gall]
?: |(=(%dojo q.a) =(%dojo q.b)) =(%dojo q.a)
(aor a b)
=< .(con +>)
|: $:{wel/well:gall con/_..se-adit} ^+ con
=. +>.$ con