docs: rewrite the IRC linking, AIM and ICQ pages in Simplified Technical English

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRRR4BV2CBsQMqfrT6
Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
Claude committed 2026-11-14 10:34:20 +00:00
1 parent 83ae7cb982
commit 4df7db5b59
3 files changed
+231 -198

No files matched your search

+133 -110
View File
@@ -1,9 +1,11 @@
The BBS has an AIM and ICQ server (OSCAR, the protocol AOL's AIM and ICQ
clients spoke), beside its [IRC](IRC) server and on the same chat. Someone
signed on in AIM 7, AIM 5, AIM 4, ICQ 2003, Pidgin, Miranda or any other
OSCAR client sees the BBS's users on their buddy list, IMs them and talks in its
[chat rooms](Chat-and-Paging), with callers on telnet, SSH, 3270s, IRC,
the web terminal and the API.
The BBS has an AIM and ICQ server (OSCAR, the protocol of the AIM and
ICQ clients of AOL). This server is adjacent to the [IRC](IRC) server of
the BBS, and it uses the same chat. A user can sign on in AIM 7, AIM 5,
AIM 4, ICQ 2003, Pidgin, Miranda or a different OSCAR client. That user
sees the users of the BBS on the buddy list, sends IMs to them, and
talks in the [chat rooms](Chat-and-Paging) of the BBS. The other users
in these rooms can be on telnet, SSH, 3270s, IRC, the web terminal and
the API.
```ini
[oscar]
@@ -13,135 +15,156 @@ host = aim.example.org:5190
| Setting | Default | What it sets |
|---|---|---|
| `address` | `:5190` | where to listen |
| `host` | the address each client came to | where clients are sent to reconnect (`host:port`); set it behind NAT |
| `max_clients` | `256` | connections at once |
| `max_per_ip` | `16` | from one address (each client opens a few) |
| `uin_base` | `100000` | an account's ICQ number is this plus its number |
| `system` | `OnlineHost` | the screen name the BBS's notices come from |
| `tls_address` | none | a TLS port for the [later logins](#later-aim-versions), e.g. `:443` |
| `tls_cert`, `tls_key` | none | its certificate and key (`tls_cert = acme` for the `[acme]` one) |
| `tls_host` | `host`'s name at `tls_address`'s port | where clients that ask for TLS are sent (`host:port`); a TLS proxy's, when one is in front |
| `address` | `:5190` | the address on which to listen |
| `host` | the address to which each client came | the address to which the BBS sends clients to connect again (`host:port`). Set it behind NAT |
| `max_clients` | `256` | the maximum number of connections at one time |
| `max_per_ip` | `16` | the maximum from one address (each client opens some connections) |
| `uin_base` | `100000` | the ICQ number of an account is this value plus the account number |
| `system` | `OnlineHost` | the screen name from which the notices of the BBS come |
| `tls_address` | none | a TLS port for the [later logins](#later-aim-versions), for example `:443` |
| `tls_cert`, `tls_key` | none | its certificate and key (`tls_cert = acme` for the certificate of `[acme]`) |
| `tls_host` | the name of `host` at the port of `tls_address` | the address to which the BBS sends clients that ask for TLS (`host:port`). The address of a TLS proxy, when there is one in front |
Point the client at the BBS: in AIM up to 6.1, the "Host" under Connection
settings (`login.oscar.aol.com` was AOL's, so a hosts file entry, or the
BBS's [DNS server](DNS), also works); in Pidgin, the server and port of an AIM or ICQ account, with "Use
clientLogin" unticked and encryption off, or see [later AIM
versions](#later-aim-versions) to use clientLogin. The deny list and bans in
`[security]` apply as they do everywhere else.
Point the client at the BBS:
- In AIM up to 6.1, set the "Host" in the Connection settings.
`login.oscar.aol.com` was the host of AOL. Thus, an entry in the hosts
file, or the [DNS server](DNS) of the BBS, also operates.
- In Pidgin, set the server and port of an AIM or ICQ account. Clear
"Use clientLogin" and disable encryption. Or, to use clientLogin,
refer to [later AIM versions](#later-aim-versions).
The deny list and bans in `[security]` apply, as on all other routes.
## Signing on
Every AIM user is a BBS user, signed on with their BBS name as the screen
name and their BBS password. A name with spaces may be typed with or
without them (`Carol Ann` or `carolann`). ICQ clients sign on by number:
`uin_base` plus the account's number (with the default, account 7 is
`100007`). Failed logins count towards the throttle and the hack log, like
any other login, and the user's access level must allow chat.
Each AIM user is a BBS user. The user signs on with the BBS name as the
screen name, and with the BBS password. You can type a name with spaces
with or without the spaces (`Carol Ann` or `carolann`). ICQ clients sign
on by number: `uin_base` plus the account number (with the default,
account 7 is `100007`). Failed logins count towards the throttle and the
hack log, as all other logins do. The access level of the user must
permit chat.
AIM clients since 3.5 send the password as an MD5 digest, which the BBS's
password hashes can't check. So the BBS keeps each account's AIM digests
too, made whenever the password is known: when the account is made, when
its password is set, and at any login by password. An account from before
`[oscar]` was set up has none yet: its user logs in once some other way
(telnet, SSH, IRC, the web) and can then sign on with any AIM client. The
log says so when that is why a sign-on failed. Old clients (AIM 1 to 3, ICQ,
Java AIM) send the password itself and sign on at once. The digests are
kept only while `[oscar]` is set up; anyone who read them from the database
could sign on by AIM as that user, as with any AIM server.
AIM clients since 3.5 send the password as an MD5 digest. The password
hashes of the BBS cannot check this digest. Thus, the BBS also keeps the
AIM digests of each account. It makes them each time that it knows the
password: when the account is made, when the password is set, and at all
logins by password. An account from before the configuration of
`[oscar]` has no digests yet. Its user must log in one time by a
different method (telnet, SSH, IRC, the web). Then the user can sign on
with all AIM clients. If this is the cause of a failed sign-on, the log
tells you. Old clients (AIM 1 to 3, ICQ, Java AIM) send the password
itself, and sign on immediately.
The BBS keeps the digests only while `[oscar]` is configured. A person
who reads them from the database can sign on by AIM as that user, as
with all AIM servers.
## Buddies
The buddy list is the user's [friends list](Chat-and-Paging#friends):
the same list the BBS's chat and IRC show, so a buddy is always a BBS
user (by name, or ICQ number). Adding anyone else is refused. A friend
added by IRC or the BBS comes to an AIM client that is on at once, in
their group (`Friends` if they have none); one added or removed on AIM
is on or off the list everywhere. Groups and aliases are kept with the
friends list; the list's other items (permit and deny entries,
preferences) as the client sent them. A client that keeps its own list
(AIM 3 and 4) has its buddies put on the friends list as it sends them.
The buddy list is the [friends list](Chat-and-Paging#friends) of the
user. It is the same list that the chat of the BBS and IRC show. Thus, a
buddy is always a BBS user (by name, or ICQ number). The BBS refuses all
other buddies. If you add a friend by IRC or the BBS, an AIM client that
is on gets it immediately, in its group (`Friends` if it has no group).
If you add or remove a buddy on AIM, the change applies on all routes.
The BBS keeps groups and aliases with the friends list. It keeps the
other items of the list (permit and deny entries, preferences) as the
client sent them. If a client keeps its own list (AIM 3 and 4), the BBS
puts its buddies on the friends list when the client sends them.
A buddy is online while they are on the BBS by any route, and shown away
when they are away on AIM or IRC. Their profile is the one their AIM
client set, or for someone not on AIM their line about themselves, their
location and what they are doing on which node. Permit and deny lists,
"allow only buddies" and ICQ's invisible status hide the user and refuse
their IMs, from AIM users and others alike.
A buddy is online while the buddy is on the BBS by any route. The buddy
shows as away when the buddy is away on AIM or IRC. The profile of the
buddy is the profile that the AIM client of the buddy set. For a user
who is not on AIM, the profile is the line about the user, the location,
and the current activity on the node. Permit and deny lists, "allow only
buddies" and the invisible status of ICQ hide the user. They also
refuse IMs to the user, from AIM users and from other users.
## IMs
An IM to a BBS user reaches every node they are on: an AIM or ICQ client
gets it as an IM (from AIM to AIM with its fonts and colours), an IRC client
as a `PRIVMSG`, a caller on a terminal as a message line. What they send
back comes as an IM from them. Typing notices, file transfers and direct
connections pass between AIM clients. IMs are [kept](Chat-and-Paging#private-messages).
An IM to a BBS user who isn't on is kept for them, and the sender told so
(once) by `OnlineHost`; they get it when they next sign on: on AIM as an
IM marked with when it was sent, on ICQ as an offline message, on IRC or
a terminal as a message line. An IM to a name that is no BBS user's is
refused ("not logged on"). The BBS's notices (new mail, a page for the sysop) come as IMs
from `OnlineHost`.
An IM to a BBS user goes to all nodes where the user is on:
- An AIM or ICQ client gets it as an IM (from AIM to AIM with its fonts
and colours).
- An IRC client gets it as a `PRIVMSG`.
- A caller on a terminal gets it as a message line.
The answers come as an IM from that user. Typing notices, file transfers
and direct connections go between AIM clients. The BBS
[keeps](Chat-and-Paging#private-messages) IMs. If a BBS user is not on,
the BBS keeps an IM for the user, and `OnlineHost` tells the sender
(one time). The user gets the IM at the next sign-on: on AIM as an IM
with the time that it was sent, on ICQ as an offline message, on IRC or
a terminal as a message line. The BBS refuses an IM to a name that is
not a BBS user ("not logged on"). The notices of the BBS (new mail, a
page for the sysop) come as IMs from `OnlineHost`.
## Chat rooms
An AIM chat room is a BBS chat room, and so an IRC channel: "Join a Chat
Room" with `main` is in `#main` with IRC users and the terminals' Chat. A
name is made a room's: lower case, spaces as dashes, at most 20 letters
and digits (`Test Room` is `test-room`). Inviting a buddy who isn't on AIM
sends them a line naming the room.
An AIM chat room is a BBS chat room, and thus an IRC channel. "Join a
Chat Room" with `main` puts the user in `#main` with IRC users and the
Chat of the terminals. The BBS changes a name into a room name: lower
case, dashes in place of spaces, a maximum of 20 letters and digits
(`Test Room` is `test-room`). If you invite a buddy who is not on AIM,
the BBS sends the buddy a line with the name of the room.
## Later AIM versions
AOL's later clients sign on by HTTP before they reach the server proper,
and the BBS serves both ways they do it, on port 5190 itself (a
connection that starts as an HTTP request is told apart by its first
byte) and on `tls_address`:
The later clients of AOL sign on by HTTP before they connect to the
server. The BBS serves the two methods that they use. It serves them on
port 5190 (the BBS knows a connection that starts as an HTTP request by
its first byte) and on `tls_address`:
- **AIM 6.2 to 7.5** post a Kerberos-style login to `/`. Set the client's
host and port under Settings, Connection, to the BBS's TLS address
(they ask for HTTPS and then a TLS connection, so `tls_address` is
needed). The client checks the certificate against its own
store (an NSS database in its folder), so a certificate from a public
CA, or the BBS's own added there, is needed.
- **AIM 6.0 and 6.1** can't be set to another server for this login; set
their `serviceManifest.xml` to the old (BUCP) login and they sign on as
AIM 5 does.
- **Pidgin with "Use clientLogin"**, AIM Express and the phones' AIM ask
`api.screenname.aol.com` (`/auth/clientLogin`) and then
`api.oscar.aol.com` (`/aim/startOSCARSession`). Point those names at the
BBS in the hosts file; by HTTPS they need a certificate for those names
that the client trusts. Either way the client then signs on to the host
the BBS names, by TLS if it asked for it ("Use SSL") and there is a
TLS host.
- **AIM 6.2 to 7.5** post a Kerberos-style login to `/`. In Settings,
Connection, set the host and port of the client to the TLS address of
the BBS. These clients ask for HTTPS and then a TLS connection. Thus,
`tls_address` is necessary. The client checks the certificate against
its own store (an NSS database in its folder). Thus, you must have a
certificate from a public CA, or add the certificate of the BBS to
that store.
- **AIM 6.0 and 6.1** cannot use a different server for this login. Set
their `serviceManifest.xml` to the old (BUCP) login. Then they sign on
as AIM 5 does.
- **Pidgin with "Use clientLogin"**, AIM Express and the AIM of the
phones ask `api.screenname.aol.com` (`/auth/clientLogin`) and then
`api.oscar.aol.com` (`/aim/startOSCARSession`). Point those names at
the BBS in the hosts file. With HTTPS, they must have a certificate
for those names that the client trusts. In all cases, the client then
signs on to the host that the BBS names. It uses TLS if it asked for
it ("Use SSL") and if there is a TLS host.
These logins send the password itself (inside TLS), so they work for any
account, without the AIM digests above.
These logins send the password itself (inside TLS). Thus, they operate
for all accounts, without the AIM digests above.
Wrong passwords count against the throttle and the hack log as any other
login does. The session secret clientLogin gives isn't used to check
the requests that follow; the token is a one-time sign-on cookie good for
five minutes.
Incorrect passwords count against the throttle and the hack log, as all
other logins do. The BBS does not use the session secret from
clientLogin to check the requests that follow. The token is a one-time
sign-on cookie, valid for five minutes.
### AIM 6.2 and later, and TLS
AIM 6.2 to 7.5 open TLS with an SSL 2.0-format hello and speak only TLS
1.0 with RSA key exchange. Go's TLS can't read that hello, so the BBS
answers those clients with [retrossl](https://github.com/D-Modem/retrossl),
D-Modem's SSL 3.0 and TLS 1.0 server (AES, 3DES, RC4 or DES, by RSA), as it
does clients that offer only SSL 3.0; every other client gets Go's TLS. So `tls_cert` must be
an RSA certificate (with `[acme]`, `key_type = rsa2048`); the log says so
at start when it isn't. A chat room asked for by TLS is sent to the TLS
host too.
AIM 6.2 to 7.5 open TLS with a hello in SSL 2.0 format. They use only
TLS 1.0 with RSA key exchange. The TLS of Go cannot read that hello.
Thus, the BBS answers those clients with
[retrossl](https://github.com/D-Modem/retrossl), the SSL 3.0 and TLS 1.0
server of D-Modem (AES, 3DES, RC4 or DES, by RSA). It does the same for
clients that offer only SSL 3.0. All other clients get the TLS of Go.
Thus, `tls_cert` must be
an RSA certificate (with `[acme]`, `key_type = rsa2048`). If it is not,
the log tells you at the start. The BBS also sends a chat room that the
client asks for by TLS to the TLS host.
A TLS proxy in front (stunnel, nginx) works as well: have it pass the
plain connection to port 5190 and set `tls_host` to its address. Behind
it every client comes from the proxy's address, so `max_per_ip`, the
login throttle and bans see that one address.
A TLS proxy in front (stunnel, nginx) also operates. Configure it to
pass the plain connection to port 5190, and set `tls_host` to its
address. Behind the proxy, all clients come from the address of the
proxy. Thus, `max_per_ip`, the login throttle and bans see only that
address.
## Port 5190 and AOL
5190 was AOL's own port before it was AIM's. A connection that begins as
an AOL client's (a P3 packet) is told apart by its first byte, so an AOL
front end can share the port; until there is one, such a connection is
logged and closed.
5190 was the port of AOL before it was the port of AIM. The BBS knows a
connection that starts as an AOL client connection (a P3 packet) by its
first byte. Thus, an AOL front end can share the port. If there is no
AOL front end, the BBS logs such a connection and closes it.
+3 -2
View File
@@ -133,8 +133,9 @@ _dmarc.example.org. TXT "v=DMARC1; p=quarantine"
```
Also, a reverse DNS (PTR) name of `mail.example.org` for 203.0.113.5 is
necessary. The hosting provider sets it. `bbs mail dkim
/etc/bbs/dkim.pem` makes the DKIM key and prints its record. With a
necessary. The hosting provider sets it.
`bbs mail dkim /etc/bbs/dkim.pem` makes the DKIM key and prints its
record. With a
smarthost, use the SPF and DKIM that its provider gives.
## Mail from the internet
+95 -86
View File
@@ -1,22 +1,25 @@
The BBS can be a server on an IRC network: a hub that links to any
number of other servers, in and out, and routes between them. It speaks
TS6, the server protocol of Solanum (Libera.Chat), charybdis,
ircd-ratbox and ircd-hybrid (EFnet), and P10, that of ircu (Undernet).
It needs no ircd of its own.
The BBS can be a server on an IRC network: a hub that links to many
other servers, in and out, and routes between them. It uses TS6, the
server protocol of Solanum (Libera.Chat), charybdis, ircd-ratbox and
ircd-hybrid (EFnet). It also uses P10, the server protocol of ircu
(Undernet). It does not need its own ircd.
- **Every BBS user is on the network.** Whoever is online, on a terminal,
a 3270, the web, [IRC](IRC), [AIM or ICQ](AIM-and-ICQ), is a user there
under their name (`Carol Ann` is `Carol_Ann`). Anyone on the network can
`/msg` and `/whois` them; the message reaches them however they came.
- **The rooms beginning `irc-` are the network's channels.** `irc-retro`
is `#retro`: whoever is in the room is in the channel, and talk in one is
talk in the other. The network's users are in the room's member list.
- **A taken nick is never fought over.** When a BBS user comes on and
their nick is in use on the network, or a link comes up with someone
there by that nick, the BBS user is renamed `Nick|Tag`, Tag being the
BBS's short tag (`alice|DM`). It is cut to fit the network's nick length,
and numbered (`alice|DM2`) if that too is taken. The BBS user's name on
the BBS does not change.
- **All BBS users are on the network.** All online users, on a terminal,
a 3270, the web, [IRC](IRC), [AIM or ICQ](AIM-and-ICQ), are users
there with their names (`Carol Ann` is `Carol_Ann`). All users on the
network can `/msg` and `/whois` them. The message goes to them on the
route that they use.
- **The rooms that start with `irc-` are the channels of the network.**
`irc-retro` is `#retro`. The users in the room are in the channel, and
text in one goes to the other. The users of the network are in the
member list of the room.
- **The BBS never fights for a nick that is in use.** Sometimes a BBS
user comes on and the nick is in use on the network. Or a link starts,
and a user there has that nick. In these cases, the BBS gives the BBS
user the name `Nick|Tag`, where Tag is the short tag of the BBS
(`alice|DM`). The BBS cuts it to the nick length of the network. If
that nick is also in use, the BBS adds a number (`alice|DM2`). The
name of the BBS user on the BBS does not change.
```ini
[irclink]
@@ -33,34 +36,34 @@ accept_password = its-to-us
| Setting | Default | What it sets |
|---|---|---|
| `server_name` | (required) | the BBS's server name on the network |
| `server_name` | (required) | the server name of the BBS on the network |
| `sid` | (required) | its TS6 server ID: a digit and two letters or digits, unique on the network |
| `numeric` | (none) | its P10 server numeric, 0 to 4095, unique on the network (needed for a P10 link) |
| `description` | the BBS's name | its description, in `LINKS` |
| `network` | the BBS's name | the network's name, as `WHOIS` of its users shows it on the BBS |
| `tag` | the BBS name's first letters | `Nick\|Tag` for a BBS user whose nick is taken |
| `host` | `server_name` | the BBS users' host, as the network sees them (`alice!bbs@host`) |
| `prefix` | `irc-` | the rooms that are channels (`none`: every room but `sysop-` ones) |
| `nick_length` | `30` (`12` with a P10 peer) | the network's `NICKLEN` (Solanum's is 31 less one; ratbox and hybrid: 9; ircu: 12) |
| `address` | `:7000` | where servers link in (`none`: nowhere) |
| `tls_address`, `tls_cert`, `tls_key` | (none) | servers linking in by TLS |
| `numeric` | (none) | its P10 server numeric, 0 to 4095, unique on the network (necessary for a P10 link) |
| `description` | the name of the BBS | its description, in `LINKS` |
| `network` | the name of the BBS | the name of the network, as the `WHOIS` of its users shows it on the BBS |
| `tag` | the first letters of the BBS name | `Nick\|Tag` for a BBS user whose nick is in use |
| `host` | `server_name` | the host of the BBS users, as the network sees them (`alice!bbs@host`) |
| `prefix` | `irc-` | the rooms that are channels (`none`: all rooms except `sysop-` rooms) |
| `nick_length` | `30` (`12` with a P10 peer) | the `NICKLEN` of the network (the value of Solanum is 31 minus one. ratbox and hybrid: 9. ircu: 12) |
| `address` | `:7000` | the address where servers link in (`none`: no address) |
| `tls_address`, `tls_cert`, `tls_key` | (none) | servers that link in by TLS |
| `retry` | `30` | seconds between tries of a link out |
Each server the BBS links with directly has an `[ircpeer NAME]`, its name
being the server's:
Each server with a direct link to the BBS has an `[ircpeer NAME]`. Its
name is the name of the server:
| Setting | Default | What it sets |
|---|---|---|
| `address` | (none: it links in) | where to link out to; the BBS links again whenever the link drops |
| `address` | (none: it links in) | the address to link out to. The BBS links again each time that the link stops |
| `tls` | `no` | link out by TLS |
| `tls_verify` | `yes` | check its certificate (`no` for a self-signed one) |
| `send_password` | (required) | the password the BBS sends (its `accept_password`) |
| `accept_password` | (required) | the password it must send (its `send_password`) |
| `tag` | its name's first letters | its users' tag, beside a BBS user of the same nick |
| `protocol` | `ts6` | `ts6` (Solanum, charybdis, ratbox), `hybrid` (ircd-hybrid 8, whose TS6 differs) or `p10` (ircu); one linking in is told apart by its handshake |
| `tls_verify` | `yes` | check its certificate (`no` for a self-signed certificate) |
| `send_password` | (required) | the password that the BBS sends (its `accept_password`) |
| `accept_password` | (required) | the password that it must send (its `send_password`) |
| `tag` | the first letters of its name | the tag of its users, adjacent to a BBS user with the same nick |
| `protocol` | `ts6` | `ts6` (Solanum, charybdis, ratbox), `hybrid` (ircd-hybrid 8, which has a different TS6) or `p10` (ircu). For a server that links in, the BBS finds the protocol from its handshake |
The other side's `connect` block names the BBS's `server_name`, with the
passwords the other way round. For Solanum:
The `connect` block of the other side names the `server_name` of the
BBS, with the passwords in the opposite direction. For Solanum:
```
connect "irc.bbs.example.org" {
@@ -73,17 +76,17 @@ connect "irc.bbs.example.org" {
};
```
A server name, SID, password or address that is wrong, or a server already
on the network by another way (a loop), is refused with an `ERROR` that
says why.
The BBS refuses an incorrect server name, SID, password or address. It
also refuses a server that is already on the network through a different
route (a loop). It sends an `ERROR` that gives the reason.
## With ircu (P10)
An ircu network is linked the same way, with `numeric` set in `[irclink]`
and `protocol = p10` on the peer. ircu has one password for a link, both
ways, so `send_password` and `accept_password` are the same. Its
`Connect` block names the BBS, and needs `hub;` if the BBS is to bring
other servers behind it:
You link an ircu network in the same way. Set `numeric` in `[irclink]`
and `protocol = p10` on the peer. ircu has one password for a link, in
the two directions. Thus, `send_password` and `accept_password` are the
same. Its `Connect` block names the BBS. It must have `hub;` if the BBS
will bring other servers behind it:
```ini
[irclink]
@@ -109,59 +112,65 @@ Connect {
};
```
ircu's users come with their accounts (`+r`), as `WHOIS` on the BBS
shows them; the BBS's users go to it with theirs. Its nick length is 12
unless its `NICKLEN` feature says otherwise: set `nick_length` to match,
or ircu refuses a longer nick.
The users of ircu come with their accounts (`+r`), as `WHOIS` on the BBS
shows them. The users of the BBS go to ircu with their accounts. The
nick length of ircu is 12, unless its `NICKLEN` feature gives a
different value. Set `nick_length` to the same value. If not, ircu
refuses a longer nick.
The BBS keeps the network by TS6's names, so it can link TS6 and P10
servers at once, each given the other's servers, users and channels in
its own protocol. Between two P10 servers every line goes as it came;
between P10 and TS6 only what both have goes across: users, nicks,
channels and their members and ops, topics, talk, private messages,
`AWAY`, `KILL`, `WHOIS` and the other queries. Channel modes go across as
`TMODE` and `MODE`, and bans from TS6; G-lines, jupes and ircu's
`CLEARMODE`, `OPMODE` and `ACCOUNT` stay on the P10 side, and TS6's
`ENCAP` on its side.
The BBS keeps the network by the TS6 names. Thus, it can link TS6 and
P10 servers at the same time. Each server gets the servers, users and
channels of the other in its own protocol. Between two P10 servers, each
line goes as it came. Between P10 and TS6, only the items that both
protocols have go across: users, nicks, channels and their members and
ops, topics, talk, private messages, `AWAY`, `KILL`, `WHOIS` and the
other queries. Channel modes go across as `TMODE` and `MODE`, and bans
from TS6. G-lines, jupes and the `CLEARMODE`, `OPMODE` and `ACCOUNT` of
ircu stay on the P10 side. The `ENCAP` of TS6 stays on its side.
## On the BBS
- In the chat, `/msg NICK TEXT` sends to someone on the network (`/msg 3
- In the chat, `/msg NICK TEXT` sends to a user on the network (`/msg 3
TEXT` is still node 3).
- On the BBS's own [IRC server](IRC), the network's users are in the
linked channels' `NAMES` and `WHO`, and `/msg`, `/whois` and `ISON` reach
them as they reach BBS users.
- Someone on the network with the nick of a BBS user online is shown on
the BBS as `Nick|Tag`, with their server's tag (`alice|hub`), so the two
are never confused; `/msg alice|hub` reaches them.
- Topics set on the network are told to the room.
- On the [IRC server](IRC) of the BBS, the users of the network are in
the `NAMES` and `WHO` of the linked channels. `/msg`, `/whois` and
`ISON` go to them as they go to BBS users.
- If a user on the network has the nick of an online BBS user, the BBS
shows that user as `Nick|Tag`, with the tag of their server
(`alice|hub`). Thus, the two users are never confused. `/msg alice|hub`
goes to them.
- The BBS tells the room the topics that users set on the network.
## As a hub
The BBS keeps the network's map: which servers are behind which link,
their users and channels. A server linking in is given everything not
behind it: the servers (`SID`), users (`EUID`, or `UID`), channels
(`SJOIN`) and topics (`TB`). What comes from one link goes on to the
others; a private message goes only toward the one it is for. When a link
drops, the servers behind it are gone from the network (a netsplit): the
rooms are told those users left, and the other links get the `SQUIT`.
The BBS keeps the map of the network: the servers behind each link, and
their users and channels. A server that links in gets all items that
are not behind it: the servers (`SID`), users (`EUID`, or `UID`),
channels (`SJOIN`) and topics (`TB`). Data from one link goes on to the
other links. A private message goes only in the direction of its
recipient. When a link stops, the servers behind it are no longer on the
network (a netsplit). The BBS tells the rooms that those users left, and
the other links get the `SQUIT`.
The BBS sends its burst once the other side's has come (the answer to its
`PING`; P10's `END_OF_BURST`), so a BBS user whose nick the other side has is renamed `Nick|Tag`
before they are sent. When two users of other servers collide, the TS6
rules apply: the newer is killed, or both if they are as old. A BBS user
killed off the network (by an oper, or services) is back on it when they
next log in. Channel modes, bans and the like (`TMODE`, `BMASK`, `ENCAP`
...) are passed on as they come; the BBS sets none of its own.
The BBS sends its burst after the burst of the other side arrives (the
answer to its `PING`. For P10, `END_OF_BURST`). Thus, if the other side
has the nick of a BBS user, the BBS gives that user the name `Nick|Tag`
before it sends the user. When two users of other servers collide, the
TS6 rules apply: the server kills the newer user, or both users if they
have the same age. If an oper or services kill a BBS user from the
network, the user comes back on the network at the next login. The BBS
passes on channel modes, bans and similar items (`TMODE`, `BMASK`,
`ENCAP` ...) as they come. The BBS sets no modes of its own.
The BBS answers `WHOIS`, `VERSION`, `MOTD`, `ADMIN`, `INFO`, `TIME` and
`LINKS` for itself, and passes those for other servers on.
`LINKS` for itself. It passes on these requests for other servers.
## Testing against a real ircd
`internal/irclink`'s `TestLive` links to a real ircd when one is set up:
see the top of `live_test.go`. It has been run against Solanum (built from
its main branch), ircd-hybrid 8.2.43 and ircu 2.10.12.19 (built from
UndernetIRC's `ircu2`, linking both in and out, with `IRCLINK_LIVE_PROTOCOL=p10`).
The `TestLive` of `internal/irclink` links to a real ircd if you
configure one. Refer to the top of `live_test.go`. We ran it against
Solanum (built from its main branch), ircd-hybrid 8.2.43 and ircu
2.10.12.19 (built from the `ircu2` of UndernetIRC, with links in and
out, with `IRCLINK_LIVE_PROTOCOL=p10`).
**See also:** [IRC](IRC), [Chat and paging](Chat-and-Paging), [MRC](MRC)