see #219 (comment)
irc: setting bot mode (+B) might not work #220
i set the config option setBot to true image (had to make it a string, wouldn't boot if it were simply a bool) and it doesn't appear to be setting the mode
image
what do your logs say?
@RandomHuman the option is called set_bot, not setBot
bot,_:=strconv.ParseBool(cfg["set_bot"])
@user0-07161 wrote in #220 (comment):
@RandomHuman the option is called
set_bot, notsetBotbot,_:=strconv.ParseBool(cfg["set_bot"])
that would probably be me reading client.go rather than the little comment bit for what the config options are, testing this now
same behaviour as when i was using the wrong config option
it appears to work for me locally with the following config (using a local instance of ergo as an IRCd):
[[plugins]]
type = "irc"
name = "ergo"
config.server = "ergo.localhost:6667"
config.tls = "false"
config.set_bot = "true"
config.nick = "lightning"
config.timeout = "2"
here're logs from lightning
☁ ~/Documents/lightning (mautrix-fork) go run ./cmd/lightning/
14:58:19 main.go:48: bridge: bot started
14:58:19 plugin.go:58: irc: connecting to ergo.localhost:6667
14:58:19 plugin.go:64: irc: connected to ergo.localhost:6667
14:58:19 client.go:216: irc: ready, welcome message: "Welcome to the ErgoTest IRC Network lightning"
and ergo
2026年07月06日T18:57:56.988Z : info : server : ergo-2.19.0-unreleased starting
2026年07月06日T18:57:56.988Z : warn : server : You are currently running an unreleased beta version of Ergo that may be unstable and could corrupt your database.
If you are running a production network, please download the latest build from https://ergo.chat/about and run that instead.
2026年07月06日T18:57:56.988Z : info : server : Using config file : ircd.yaml
2026年07月06日T18:57:56.988Z : info : server : Using datastore : ircd.db
2026年07月06日T18:57:56.988Z : info : server : Proxied IPs will be accepted from : localhost
2026年07月06日T18:57:56.988Z : info : listeners : now listening on 127.0.0.1:6667, tls=false, proxy=false, tor=false, websocket=false.
2026年07月06日T18:57:56.988Z : info : listeners : now listening on [::1]:6667, tls=false, proxy=false, tor=false, websocket=false.
2026年07月06日T18:57:56.988Z : info : listeners : now listening on :6697, tls=true, proxy=false, tor=false, websocket=false.
2026年07月06日T18:57:56.988Z : info : server : Server running
2026年07月06日T18:57:56.988Z : info : connect-ip : s00001 : Client connecting: real IP 127.0.0.1, proxied IP <nil>
2026年07月06日T18:57:56.988Z : info : connect : s00001 : Client connected [lightning] [u:~u] [r:lightning]
2026年07月06日T18:58:11.268Z : info : connect-ip : s00002 : Client connecting: real IP ::1, proxied IP <nil>
2026年07月06日T18:58:11.370Z : info : connect : s00002 : Client connected [jersey] [u:~u] [r:jersey]
2026年07月06日T18:58:12.875Z : info : opers : jersey : opered up as : admin
2026年07月06日T18:58:18.472Z : info : connect-ip : s00001 : Disconnecting session of lightning from 127.0.0.1
2026年07月06日T18:58:18.472Z : info : quit : lightning is no longer on the server
2026年07月06日T18:58:19.222Z : info : connect-ip : s00003 : Client connecting: real IP ::1, proxied IP <nil>
2026年07月06日T18:58:19.222Z : info : connect : s00003 : Client connected [lightning] [u:~u] [r:lightning]
the user list in halloy seems to show it working, and whois does as well
could you try the latest commit on develop again?
still isn't working for me, using the latest commit built into a docker container with
docker buildx build . -f etc/containerfile --platform linux/amd64 --build-arg VERSION=custom --build-arg SOURCE_DATE_STR="$(date -u '+%Y-%m-%d %H:%M:%S')" -t custom-lightning --load
lightning config for IRC:
image
lightning logs
image
ergo logs
image
whois output
image
@RandomHuman i'm not entirely sure why this would happen. can you try and add more logging to the IRC client in listen() to see what ergo is returning?
@jersey wrote in #220 (comment):
@RandomHuman i'm not entirely sure why this would happen. can you try and add more logging to the IRC client in
listen()to see what ergo is returning?
apologies, but i don't actually know how to do that, i am entirely unexperienced in Go (have literally never touched it), so i don't even know where i'd be starting for that
i can turn on the debug logging in Ergo though
logs everything it sends to and gets from clients, might help
@RandomHuman wrote in #220 (comment):
i can turn on the debug logging in Ergo though
logs everything it sends to and gets from clients, might help
well, according to my Ergo logs, lightning isn't even trying to assign itself the +B mode
after setting the +i mode and getting the debug message, lightning and the server seem to simply not communicate further (this is without the bot actively in a channel)
if you want a photo of the logs i'll DM it, not attaching it here because of the sheer amount of stuff that gets logged while the debugging mode is on
could you DM those logs? i'd be interested to see that
@RandomHuman could you try cdf614fae2 and seeing what logs there might relate to bot mode there?
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?