Changeset 535 in code for trunk/doc/ext


Ignore:
Timestamp:
May 25, 2021, 2:42:51 PM (4 years ago)
Author:
contact
Message:

Introduce the soju.im/bouncer-networks-notify capability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/ext/bouncer-networks.md

    r533 r535  
    4343`BOUNCER` command.
    4444
     45The `bouncer-networks` capability MUST be negociated. This allows the server and
     46client to behave differently when the client is aware of the bouncer networks.
     47
     48The `bouncer-networks-notify` capability MAY be negociated. This allows the
     49client to signal that it is capable of receiving and correctly processing
     50bouncer network notifications.
     51
    4552### `RPL_ISUPPORT` token
    4653
     
    128135### Network notifications
    129136
    130 When a network attributes are updated, the bouncer MUST broadcast a
    131 `BOUNCER NETWORK` message to all connected clients with the updated attributes:
     137If the client has negociated the `bouncer-networks-notify` capability, the
     138server MUST send an initial batch of `BOUNCER NETWORK` messages with the current
     139list of network, and MUST send notification messages whenever a network is
     140added, updated or removed.
     141
     142If the client has not negociated the `bouncer-networks-notify` capability, the
     143server MUST NOT send implicit `BOUNCER NETWORK` messages.
     144
     145When network attributes are updated, the bouncer MUST broadcast a
     146`BOUNCER NETWORK` message with the updated attributes to all connected clients
     147with the `bouncer-networks-notify` capability enabled:
    132148
    133149    BOUNCER NETWORK <netid> <attributes>
    134150
     151The notification SHOULD NOT contain attributes that haven't been updated.
     152
    135153When a network is removed, the bouncer MUST broadcast a `BOUNCER NETWORK`
    136 message to all connected clients:
     154message with the special argument `*` to all connected clients with the
     155`bouncer-networks-notify` capability enabled:
    137156
    138157    BOUNCER NETWORK <netid> *
     
    232251    C: NICK emersion
    233252    C: USER emersion 0 0 :Simon
    234     S: CAP * LS :sasl=PLAIN bouncer-networks
     253    S: CAP * LS :sasl=PLAIN bouncer-networks bouncer-networks-notify
    235254    C: CAP REQ :sasl bouncer-networks
    236255    [SASL authentication]
     
    249268
    250269    C: BOUNCER ADDNETWORK name=OFTC;host=irc.oftc.net
    251     S: BOUNCER NETWORK 44 status=connecting
     270    S: BOUNCER NETWORK 44 name=OFTC;host=irc.oftc.net;status=connecting
    252271    S: BOUNCER ADDNETWORK 44
    253272    S: BOUNCER NETWORK 44 status=connected
Note: See TracChangeset for help on using the changeset viewer.