Find a file
Simon Ser 2b2a2fd479 msgstore/znclog: fix panic on malformed input line
If the line is "[01:02:03]" without a trailing space, we trip on
a "slice bounds out of range" panic.

Closes: https://todo.sr.ht/~emersion/soju/214
2023-05-23 23:08:44 +02:00
auth Move authError to auth package 2023-02-23 22:32:24 +01:00
cmd Rename Config.Log{Driver,Path} to MsgStore 2023-05-23 11:23:38 +02:00
config Move DefaultUnixAdminPath to config package 2023-03-15 17:47:47 +01:00
contrib contrib/systemd: add AmbientCapabilities=CAP_NET_BIND_SERVICE 2023-04-13 12:40:12 +02:00
database database/sqlite: fix missing argument in DeleteUser 2023-04-14 17:37:53 +02:00
doc doc/packaging: add section about binding to privileged ports 2023-04-14 17:35:51 +02:00
identd identd: use UNKNOWN for OS name 2023-02-23 13:27:25 +01:00
msgstore msgstore/znclog: fix panic on malformed input line 2023-05-23 23:08:44 +02:00
xirc downstream: return channel in cached WHO reply 2023-04-05 10:54:43 +02:00
.build.yml ci: switch to alpine/latest 2021-10-15 09:59:53 +02:00
.editorconfig Add .editorconfig 2020-11-30 11:39:41 +01:00
.gitignore gitignore: add doc/sojuctl.1 2023-04-05 10:56:36 +02:00
certfp.go Split CertFP logic into separate file 2021-10-08 09:47:25 +02:00
config.in Listen on the default unix admin endpoint in the default configuration 2023-02-06 15:15:09 +01:00
conn.go Drop isErrClosed 2023-02-23 10:32:36 +01:00
downstream.go downstream: fix nick in auth error message 2023-05-23 18:28:50 +02:00
go.mod Bump minimum Go version to 1.19 2023-02-22 23:46:14 +01:00
go.sum Bump minimum Go version to 1.19 2023-02-22 23:46:14 +01:00
irc.go Panic if isHighlight is called with empty nick 2023-04-16 21:22:08 +02:00
irc_test.go irc: add isHighlight tests 2022-02-25 11:31:41 +01:00
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
Makefile makefile: add variable with command list 2023-03-15 18:36:04 +01:00
rate.go Add exponential backoff when re-connecting to upstream 2021-12-02 12:14:35 +01:00
README.md readme: merge paragraphs about GOFLAGS 2023-02-22 21:12:22 +01:00
server.go Rename Config.Log{Driver,Path} to MsgStore 2023-05-23 11:23:38 +02:00
server_test.go Add CHATHISTORY test 2023-05-23 13:06:22 +02:00
service.go service: reject params for commands that don't take any 2023-04-25 09:51:37 +02:00
service_test.go Hand-made word splitter for BouncerServ 2021-06-24 19:33:46 +02:00
upstream.go downstream: pass context to SendMessage 2023-04-06 13:23:20 +02:00
user.go Rename Config.Log{Driver,Path} to MsgStore 2023-05-23 11:23:38 +02:00

soju

builds.sr.ht status

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