summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2026-04-30 12:02:12 -0300
committerEuAndreh <eu@euandre.org>2026-04-30 12:02:12 -0300
commite072de2f2f284758735f5db89a019e1dce13ddca (patch)
tree2f0f2caf1a10cbd413eb428b70554578f381d988 /tests
parentImplement VERSION, ISON, and CHGHOST (diff)
downloadpapod-e072de2f2f284758735f5db89a019e1dce13ddca.tar.gz
papod-e072de2f2f284758735f5db89a019e1dce13ddca.tar.xz
Implement ADMIN, STATS, LINKS, TRACE, USERS, REHASH, CONNECT
Previously these commands fell through to the catch-all 421 'Unknown command' branch. All of them are RFC1459 commands a modern client may probe; we now respond with the RFC numerics: - ADMIN: 256 + 257 + 258 + 259 administrative info burst. - STATS: 219 terminator always; the 'u' query returns 242 with a parsed uptime, the default returns a single 250 summary line. Other queries (m, l, o) are accepted with only the terminator (no records to report). - LINKS: 364 line for ourselves + 365 terminator (we don't link to other servers). - TRACE: 206 server entry + 262 terminator. - USERS: 392 header + 393 entries + 394 terminator, or 395 when nobody is logged in. - REHASH: 382 for opers, 481 otherwise. No actual config reload (papod reads only env vars at startup). - CONNECT: 481 for non-opers, 402 'no such server' otherwise (we do not link). Also added :started-at to the components map so STATS u can report uptime.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions