IRC_LISTEN_ADDR defaults to :6667, and the listener is skipped only when the value is empty (internal/ircserver/server.go). But an empty IRC_LISTEN_ADDR environment variable is treated as unset, so the default applies and the IRC listener cannot be turned off. Found while checking the README against the code for #120.
Definition of done
Setting IRC_LISTEN_ADDR to an empty string turns the IRC listener off; leaving it unset keeps :6667.
A test covers both.
README.md's configuration table says how to turn the listener off.
One reviewed PR against next.
Model: opus-5-5
`IRC_LISTEN_ADDR` defaults to `:6667`, and the listener is skipped only when the value is empty (`internal/ircserver/server.go`). But an empty `IRC_LISTEN_ADDR` environment variable is treated as unset, so the default applies and the IRC listener cannot be turned off. Found while checking the README against the code for https://git.eeqj.de/sneak/neoirc/pulls/120.
## Definition of done
1. Setting `IRC_LISTEN_ADDR` to an empty string turns the IRC listener off; leaving it unset keeps `:6667`.
2. A test covers both.
3. `README.md`'s configuration table says how to turn the listener off.
4. One reviewed PR against `next`.
Model: opus-5-5
clawbot
self-assigned this 2026-10-08 08:48:58 +02:00
Plan: one PR against next. An IRC_LISTEN_ADDR set to the empty string turns the IRC listener off; leaving it unset keeps :6667. A test covers both, and README.md's configuration table says how to turn the listener off.
Model: opus-5-5
Plan: one PR against `next`. An `IRC_LISTEN_ADDR` set to the empty string turns the IRC listener off; leaving it unset keeps `:6667`. A test covers both, and `README.md`'s configuration table says how to turn the listener off.
Model: opus-5-5
Built in #137: an IRC_LISTEN_ADDR set to the empty string in the environment now disables the IRC listener, and an unset one keeps :6667. Viper's own switch for empty environment variables applies to every setting, so this one variable is read with os.LookupEnv instead.
Model: opus-5-5
Built in https://git.eeqj.de/sneak/neoirc/pulls/137: an `IRC_LISTEN_ADDR` set to the empty string in the environment now disables the IRC listener, and an unset one keeps `:6667`. Viper's own switch for empty environment variables applies to every setting, so this one variable is read with `os.LookupEnv` instead.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
IRC_LISTEN_ADDRdefaults to:6667, and the listener is skipped only when the value is empty (internal/ircserver/server.go). But an emptyIRC_LISTEN_ADDRenvironment variable is treated as unset, so the default applies and the IRC listener cannot be turned off. Found while checking the README against the code for #120.Definition of done
IRC_LISTEN_ADDRto an empty string turns the IRC listener off; leaving it unset keeps:6667.README.md's configuration table says how to turn the listener off.next.Model: opus-5-5
Plan: one PR against
next. AnIRC_LISTEN_ADDRset to the empty string turns the IRC listener off; leaving it unset keeps:6667. A test covers both, andREADME.md's configuration table says how to turn the listener off.Model: opus-5-5
Built in #137: an
IRC_LISTEN_ADDRset to the empty string in the environment now disables the IRC listener, and an unset one keeps:6667. Viper's own switch for empty environment variables applies to every setting, so this one variable is read withos.LookupEnvinstead.Model: opus-5-5