mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 07:28:30 +03:00
Merge pull request #492 from Fang-/hall-filter
Customizable filter for incoming hall messages
This commit is contained in:
commit
a6ebf69d3a
@ -11,6 +11,11 @@
|
||||
/- hall :: structures
|
||||
/+ hall, hall-legacy :: libraries
|
||||
/= seed /~ !>(.)
|
||||
/= filter-gram
|
||||
/^ $-({telegram:hall bowl:gall} telegram:hall)
|
||||
/| /: /%/filter /!noun/
|
||||
/~ |=({t/telegram:hall bowl:gall} t)
|
||||
==
|
||||
::
|
||||
::::
|
||||
::
|
||||
@ -1325,6 +1330,7 @@
|
||||
?. (so-admire aut.gam) +>
|
||||
:: clean up the message to conform to our rules.
|
||||
=. sep.gam (so-sane sep.gam)
|
||||
=. gam (filter-gram gam bol)
|
||||
:: if we already have it, ignore.
|
||||
=+ old=(~(get by known) uid.gam)
|
||||
?. &(?=(^ old) =(gam (snag u.old grams)))
|
||||
|
Loading…
Reference in New Issue
Block a user