text fixes.

Co-authored-by: Leo Wandersleb <leo@leowandersleb.de>
This commit is contained in:
fiatjaf 2022-08-14 20:22:16 -03:00 committed by GitHub
parent a6ad8b9a13
commit 56cc238a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
23.md
View File

@ -16,7 +16,9 @@ The _read_ condition consists of a string containing a rule that follows a subse
The `read` rule operates on the values of the [NIP-01](01.md) **filter** object, while the `write` rule operates on the values of the **event** object.
When a `read` rule evaluates to `true` for a given **filter** the client SHOULD send a `REQ` message to the relay, otherwise it SHOULD NOT. When a `write` rule evaluates to `true` for a given **event** the client SHOULD send that event (in a `EVENT` message) to the relay, otherwise it MUST NOT.
When a `read` rule evaluates to `false` for a given **filter** the client SHOULD NOT send that filter in a `REQ` message to that relay.
When a `write` rule evaluates to `false` for a given **event** the client SHOULD NOT send that event in an `EVENT` message to that relay.
When a rule is malformed or the client is unable to parse it for any reason (for example, for not having implemented all the operators) it SHOULD treat it as `true` if it is a _read_ rule and `false` if it is a _write_ rule.