Skip to content

Commit f352909

Browse files
authored
Fix RPL_LINKS param list, and provide an example (#245)
This now conforms to what Charybdis/Hybrid/Plexus4/Solanum, InspIRCd, irc2, ngIRCd, and UnrealIRCd do. Bahamut and ircu2/Nefarious do not support LINKS at all.
1 parent bf838db commit f352909

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

_includes/messages/optional.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Numeric Replies:
3939
* {% numeric RPL_LINKS %}
4040
* {% numeric RPL_ENDOFLINKS %}
4141

42+
Reply Example:
43+
44+
:My.Little.Server 364 nick services.example.org My.Little.Server :1 Anope IRC Services
45+
:My.Little.Server 364 nick My.Little.Server My.Little.Server :0 test server
46+
:My.Little.Server 365 nick * :End of /LINKS list.
47+
4248
### USERHOST message
4349

4450
Command: USERHOST

_includes/modern-appendix.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,10 @@ Sent as a reply to the {% message NAMES %} command, this numeric lists the clien
678678

679679
{% numericheader RPL_LINKS %}
680680

681-
"<client> * <server> :<hopcount> <server info>"
681+
"<client> <server1> <server2> :<hopcount> <server info>"
682682

683-
Sent as a reply to the {% message LINKS %} command, this numeric specifies one of the known servers on the network.
683+
Sent as a reply to the {% message LINKS %} command, this numeric specifies servers `<server1>` and `<server2>` are linked together.
684+
For servers which follow a spanning tree topology, `<server2>` is the closest to the client.
684685

685686
`<server info>` is a string containing a description of that server.
686687

0 commit comments

Comments
 (0)