Repository navigation
The last of the resource bounds.
What held up
METADATA. A plain member of a channel may read what is set on it and not set it; a stranger may do neither. The key limit is the fifty it advertises, with a clear refusal past it. A value longer than a line is refused rather than truncated.
What did not
METADATA was the one command left that told a stranger a secret channel was there — KEY_NO_PERMISSION … :You are not in '#x' where a channel that does not exist got INVALID_TARGET … :No such target. It now answers the way the rest were taught to in 1.27.0, for GET, LIST, SET and SUB alike.
Nothing counted channel registrations. Creating a channel while logged in registers it, and a registration is a row that outlives the visit. Four hundred JOIN/PART pairs from one account, sent as fast as a client may send, left sixty-three channels registered to it and not one refusal — and they stay until [expiry] takes them, which an operator may never have turned on. An account is free to make, so that is a database as large as somebody cares to make it.
[limits]
max_channels_per_account = 30 # 0 for no limitPast the limit the channel is still made and the person still gets @ in it. What stops is the writing down — and they are told which channels those were and that CHANDROP makes room, because a room that is theirs in every way except the register is a confusing thing to be handed silently.
The count is taken once before any channel is locked and carried through the JOIN, so naming fifty channels in one command cannot walk past the limit fifty times.
Verification
546 irctest passed with the two known prefix deviations, 189 unit tests, 970 smoke checks across thirteen suites, 162 more across two linked servers, plain and over TLS.
Three findings during this work turned out to be the test rather than the server — a metadata key limit that looked unenforced, a channel count that looked capped at ten, a probe that looked like a leak — all the ordinary flood allowance dropping commands the test sent too fast. connect_negotiating can arrive from another address now, so a test that means to send a hundred things can.
Full Changelog: v1.29.0...v1.30.0