8 Commits
Author SHA1 Message Date
Claude 217e672522 IRC: ChanServ, with room registration, access lists and auto-op
A user registers a room with ChanServ (/msg ChanServ REGISTER #room, or
/cs REGISTER in the BBS's chat) and is its founder. Its access list
takes Atheme's flags (v V o O t i r R f s A e b F, and the VOP, AOP, SOP
and FOUNDER templates): those with O or V are opped or voiced on coming
in, by any way in. A registered room's ops give and take ops and voice
(MODE +o/-o/+v/-v), put people out (KICK, /kick on the BBS) and set the
topic. ChanServ also has DROP, INFO, OP/DEOP/VOICE/DEVOICE, TOPIC, KICK,
BAN/UNBAN (b on an entry: kept out), CLEAR #room USERS (everyone out but
the one asking), SET (FOUNDER, GUARD, TOPICLOCK, PRIVATE, DESCRIPTION,
URL, ENTRYMSG), LIST and WHY.

Status, bans and kicks are the room's, in the shared chat code, so they
hold for IRC, the text BBS, 3270s, AOL, Yahoo, AIM, MSN and CB alike;
front ends that know only the older events get a notice and a leaving.
Unregistered rooms are as before: no ops but sysops. Page rooms and rooms
a linked network or MRC carries can't be registered. A room unused for
chanserv_expire days (90) is dropped; a deleted founder's room passes to
the next on its list. PREFIX is now (ov)@+.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTXE7MNm3r3hHAmTG2
2026-11-10 16:22:05 +00:00
NeoandClaude 925d95571d AOL host: the client's own Read Mail, Old Mail and Sent Mail (#40)
The client's mail tool asks for its lists with m7 (new), m9 (old) and
m8 (sent), opens a mail with m3 (mip_preset_message_id, mip_read_mail)
and changes mail with m2 (mip_change_message_status: 7 Ignore, 2 Keep
As New, 4 Delete). All of this was read from the tool's code
(AOLMIP.AOL). The host answers each list with a MIP message holding one
message per mail (id, author, subject, date, an empty block), and a read
with the whole mail. The atom order within a list entry is a best guess
until a real 3.0 client tries it.

store gains MarkMailUnread for Keep As New.


Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V

Signed-off-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 21:46:13 -08:00
NeoandClaude 95558dc200 AOL host: chat rooms and message boards (#36)
LP (List Rooms) and the keywords Rooms and Room name go into any BBS
chat room. The keyword Boards lists the message areas; a board lists its
topics, a topic its posts, and a post window (de_ez_send_form, token Zp)
starts a topic or replies. All are host windows whose buttons send
keywords.


Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 21:19:09 -08:00
Claude 3d8ba09de2 AOL host: keywords and mail
Kk from the Keyword window or a host button goes to Help, Chat, Mail or
Who. m4 (MIP) from Write Mail is sent as BBS mail; the mailbox and each
mail are host windows whose buttons send keywords to read and delete.
The Welcome window counts new mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:33:31 +00:00
Claude 74d30ea1b3 AOL host: People Connection chat and Instant Messages
Chat: CJ (People Connection) takes the client into the BBS's main room,
opened in the client's own room window (32-117; 4.0's 43-22783) with
the people there.  The room's lines come to it as AB (name, text), its
comings and goings as CA and CB, by slots the window numbers; Aa is a
line said (/me an action); CL leaves.  The same room as callers on every
other route.

IMs: iS (4.0: is) is a BBS private message to a user, wherever they
are on, kept for one away and the sender told; a private message to the
client opens its own IM window (32-223; 4.0's 32-6736), one for each
partner, the sender's own lines in it too.  iO says whether someone is
on.  Kept messages are given at sign-on.  Screen names are compared
without their spaces.

p3.Link.NoCRC tells 4.0 (it sends "**" for CRCs) from 3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:18:08 +00:00
Claude e75f4ea03d AOL host: AOL clients sign on with BBS accounts
internal/aol serves AOL's own clients over P3: each token the client
sends is handled, and the host answers with atom streams compiled from
FDO91 source.

- Dd, the Welcome form's screen name and password (its two de_data),
  is a BBS login (Authenticate, throttled and logged as any); the client
  becomes a node, is taken online (async_online, its main window 32-296)
  and shown the BBS's Welcome window.  A failed one gets an alert and
  async_force_off; "New User" is told to join by telnet or the web.
- pE (Sign Off) is answered with XS, the host's sign-off.
- Other tokens are answered with uni_wait_off, so the client doesn't
  wait on them, and are logged; before sign-on they're ignored.
- Streams go as aT in one packet, or at pieces with one 4-byte id when
  long; a stream the client spreads over packets (4.0) is put together.

[aol] turns it on, at :5190 by default.  When [oscar] listens there too
the two share the port: OSCAR hands over connections that begin as P3.

Tested with a scripted client (sign-on, refusals, sign-off, long
streams both ways) and through OSCAR's port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:00:22 +00:00
Claude abdb146b4b P3 for an AOL front end: packets and the host's end of a link
internal/aol/p3 is P3, the link layer under the AOL 3.0/4.0 client:

- Packets: Append writes them (length, CRC-16/ARC), Reader reads them,
  passing over what isn't P3, telling a bad CRC or length apart so it can
  be NAKed, and taking AOL 4.0's "**" in place of a CRC.
- Link, started by Serve on a connection: waits for the client's INIT and
  acknowledges it (byte for byte as hosts that serve live clients do),
  then DATA in order in and out, tx/rx 0x10-0x7F round the ring, a window
  of 16, an ACK every 8 DATA or 200ms after a lone one unless a packet of
  ours carries it, a NAK once for each gap or bad CRC, go-back-N resends
  on NAK, heartbeats after 12 seconds unacknowledged and the link down
  after 10, a new INIT starting the link over.
- ParseInit reads what the client says of itself; Sniff tells a P3
  client's first packet; Token splits a DATA's token from its data.

Tested against a client scripted over a pipe (windows, NAKs, resends,
heartbeats, wrapping round the sequence numbers), under -race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-08 20:46:37 +00:00
Claude 81fe49a786 FDO91 for an AOL front end: atom streams, compiler, decompiler
internal/aol/fdo reads and writes the atom streams AOL 3.0/4.0 clients
and hosts exchange (all eight encoding styles, large atoms split across
packets), compiles FDO91 source byte for byte as Ada32.dll does, and
decompiles streams to source that compiles back to the same bytes.

The atom table is ADA.BIN's, as AtomForge dumped it (MIT), generated by
go run ./internal/aol/fdo/gen; eleven AOL 4.0 atoms it lacks come from
the corpus.  Named values are from the FDO91 manual and AtomForge.

Checked against AtomForge's corpus of Ada32's output: all 1,889 forms,
74,369 single atoms and 62 more streams (44 captured from a live client)
compile to the same bytes and round-trip.  testdata keeps 93 forms and the
live captures; FDO_CORPUS points the tests at the whole corpus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-08 12:24:27 +00:00