Skip to content

Bring the ERC module up to date - #1496

Merged
bbatsov merged 1 commit into
masterfrom
overhaul-erc
Nov 24, 2026
Merged

bbatsov merged 1 commit into
masterfrom
overhaul-erc

Conversation

@bbatsov

@bbatsov bbatsov commented Nov 24, 2026

Copy link
Copy Markdown
Owner

The ERC module still connected to Freenode, loaded ERC (and created a log directory) at startup, and used names like start-irc and my-fav-irc outside Prelude's namespace, plus an unused erc-notify-allowed-p in ERC's.

It now defaults to Libera.Chat and configures ERC once it loads. The commands and options are prelude-erc-start, prelude-erc-stop, prelude-erc-servers and prelude-erc-quit-message, with the old names kept as obsolete aliases so existing configs keep working. erc-notify-allowed-p is removed outright, as nothing in Prelude called it.

Freenode, the server it connected to, has been gone since 2021; it's
Libera.Chat now, where most of the free software channels moved. The
docs also listed irc.mozilla.org, which closed in 2020.

The module loaded ERC at startup. Its options are set without loading
it now, which ERC's definitions respect, so personal config and
Customize still get the last word; only the additions to erc-modules
wait for ERC to load. Spell checking was turned on with a global mode;
it's ERC's spelling module in that list now. The log directory was
created at startup, even though logging isn't on unless the user
turns on ERC's log module. It's created when that loads now, parents
included, which ERC doesn't do itself.

The commands and variables had names like start-irc and my-fav-irc,
outside of Prelude's namespace, and erc-notify-allowed-p sat in ERC's
own while nothing called it. The commands and options are now
prelude-erc-start, prelude-erc-stop, prelude-erc-servers and
prelude-erc-quit-message, the old names being obsolete aliases, and
the unused function is gone. Connecting doesn't pass erc-nick to
erc-tls anymore, as ERC works out the nickname itself, and reading it
before ERC was loaded failed once the module was byte-compiled.
@bbatsov
bbatsov merged commit 8e67f52 into master Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant