Implemented %create action.

This commit is contained in:
Fang 2017-04-11 13:24:07 +02:00
parent 4b5010a7ba
commit d769b2f325
3 changed files with 6 additions and 9 deletions

View File

@ -1221,12 +1221,7 @@
?: (~(has in tales) nom)
(sh-lame "{(trip nom)}: already exists")
=. ..sh-work
::x create new config for channel.
%^ sh-tell %design nom
:- ~
:+ [[%& our.hid nom] ~ ~]
(end 3 64 txt)
[por ~]
(sh-action %create nom txt por)
(join [[%& our.hid nom] ~ ~])
::
++ reverse-folks

View File

@ -211,7 +211,9 @@
:: station configuration
::
$create :: create station
~&(%talk-action-create !!)
?. (~(has in stories) p.act)
(ra-config p.act [[%& our.hid p.act] ~ ~] q.act [r.act ~])
(ra-react red %fail (crip "{(trip p.act)}: already exists") `act)
::
$permit :: invite/banish
%- (ra-affect p.act red `act) |= par/_pa =< pa-abet
@ -390,7 +392,7 @@
=+ pur=(~(get by stories) man)
?~ pur
%+ ra-react red
[%fail (crip (weld "no story " (trip man))) act]
[%fail (crip "no story {(trip man)}") act]
(fun ~(. pa man ~ u.pur))
::
++ ra-diff-talk-report :: subscription update

View File

@ -12,7 +12,7 @@
== ::
++ action :: user action
$% :: station configuration ::
{$create (pair knot (pair cord posture))} :: create station
{$create (trel knot cord posture)} :: create station
{$permit (trel knot ? (set ship))} :: invite/banish
:: personal metadata ::
::TODO change to target partners, not only our stations.