Skip to content

SekurIRCd 1.3.2

Choose a tag to compare

@gcanosa gcanosa released this 05 Nov 10:15
· 111 commits to main since this release

ChanServ

  • Takeover protection, as on Anope: ChanServ remembers each registered channel's TS. A channel recreated since it last saw it (on another server, during a netsplit, or while services were down) is reset (default modes, no +k/+i/+l/redirect, empty ban/exception/invite lists, then +r, MLOCK and a locked topic back) and anyone holding ops without the access for it loses them. A channel with the TS it already knows is left alone. On relink, ChanServ sweeps every registered channel for ACCESS modes and AKICK/RESTRICTED members.
  • ACCESS and AKICK work on JOIN in every registered channel, not only GUARDed ones. ChanServ can't be kicked or deopped (484). SECUREOPS checks each +o against the access level. SJOIN with a TS of 0 or less no longer wins every channel; mode changes that change nothing are no longer echoed.

Fixes found testing with iSekur

  • Linked servers: a user joining a channel with members on another server also got that server's own topic and NAMES replies (331/332/353/366), once per remote server, and again on relink. Only the user's own server answers a JOIN now.
  • draft/multiline in CHATHISTORY: multiline messages were stored as one flattened line cut at 419 bytes. History now keeps the whole batch (line breaks, up to 4096 bytes): clients with draft/multiline get it back as a multiline batch inside the chathistory batch, others as one message per line, as live. Spam filters check the whole multiline text too.
  • ~user shown the same everywhere: JOIN/PRIVMSG prefixes said ~user while 001, WHOIS (311), WHO (352/354), NAMES with userhost-in-names (353), WHOWAS (314), USERHOST/USERIP, WATCH and CHGHOST said user, so a ban copied from WHOIS didn't match. ChanServ's NOTICEs lost a stray ~. CHGIDENT on a user on another server now reaches every server as a confirmed ident.
  • labeled-response: REGISTER answered ACK at once and sent its real result unlabeled; the result now carries the label.
  • CHATHISTORY and MARKREAD without their capability answer FAIL … INVALID instead of nothing.
  • 321 is Channel :Users Name (it was one trailing parameter).
  • [channels] default_modes defaults to "nt" when the key is missing, as the template says (it was empty, so channels took external messages).
  • draft/multiline across linked servers: a batch sent on one server reached users on the others as one flattened line cut at 419 bytes, and was stored that way in their history. Its lines now travel with it (a new MLINE link line just before the message), so every server delivers the same multiline batch (or one message per line without the cap) and keeps it whole in history. Servers older than 1.3.2 ignore MLINE and still deliver the flattened message.

tools/upgrade.py

  • When upstream rewrote its history (same code, new commit hashes) it said "diverged" and couldn't upgrade; it now says "same code as (upstream history was rewritten)" and moves the checkout onto upstream's history, keeping local edits.
  • It tells you when what runs isn't the checkout yet (bin/sekurircd older than the source, or a daemon started before the last build) and offers to rebuild and restart.
  • The menu's default is never an option older than your checkout.