f5612ead04
Some channels are typically protected with a legacy bot to which a message is sent, causing the bot to send an INVITE to a channel, which is invite-only. Previously, a connect-command for sending a custom message to the bot could be added, but there was no way to automatically accept the invite. This commit enables soju to automatically join a previously saved channel when we receive an invite to it. Examples: - Joining #restricted, then getting disconnected from the upstream, sending a message to the bot, receiving an invite and accepting it - Joining #watercooler, getting kicked, then invited again after a while We eat the INVITE event so that we just transparently join the channel without warning all downstreams. Of course, of note is that we do *not* accept invites of unknown/unsaved channels. Thanks to eju for finding the issue and providing a first patch. |
||
---|---|---|
auth | ||
cmd | ||
config | ||
contrib | ||
database | ||
doc | ||
fileupload | ||
identd | ||
msgstore | ||
xirc | ||
.b4-config | ||
.build.yml | ||
.editorconfig | ||
.gitignore | ||
certfp.go | ||
config.in | ||
conn.go | ||
downstream.go | ||
go.mod | ||
go.sum | ||
irc.go | ||
irc_test.go | ||
LICENSE | ||
Makefile | ||
rate.go | ||
README.md | ||
server.go | ||
server_test.go | ||
service.go | ||
service_test.go | ||
upstream.go | ||
user.go |
soju
soju is a user-friendly IRC bouncer. soju connects to upstream IRC servers on behalf of the user to provide extra functionality. soju supports many features such as multiple users, numerous IRCv3 extensions, chat history playback and detached channels. It is well-suited for both small and large deployments.
Usage
Building and installing
Dependencies:
- Go
- BSD or GNU make
- a C89 compiler (optional, for SQLite)
- scdoc (optional, for man pages)
For end users, a Makefile
is provided:
make
sudo make install
For development, you can use go run ./cmd/soju
as usual.
To link with the system libsqlite3, set GOFLAGS="-tags=libsqlite3"
. To disable
SQLite support, set GOFLAGS="-tags=nosqlite"
. To use an alternative SQLite
library that does not require CGO, set GOFLAGS="-tags=moderncsqlite"
. To
build with PAM authentication support, set GOFLAGS="-tags=pam"
.
Contributing
Send patches on the mailing list or on GitHub, report bugs on the issue tracker. Discuss in #soju on Libera Chat.
License
AGPLv3, see LICENSE.
Copyright (C) 2020 The soju Contributors