Find a file
Simon Ser db198335aa
Per-entity ring buffers
Instead of having one ring buffer per network, each network has one ring
buffer per entity (channel or nick). This allows history to be more
fair: if there's a lot of activity in a channel, it won't prune activity
in other channels.

We now track history sequence numbers per client and per network in
networkHistory. The overall list of offline clients is still tracked in
network.offlineClients.

When all clients have received history, the ring buffer can be released.

In the future, we should get rid of too-old offline clients to avoid
having to maintain history for them forever. We should also add a
per-user limit on the number of ring buffers.
2020-04-10 19:22:47 +02:00
cmd Add ability to change password 2020-04-10 10:09:02 +02:00
config config: use shlex 2020-04-01 14:58:14 +02:00
doc Remove per-network ring buffer goroutines 2020-04-06 18:05:36 +02:00
.build.yml ci: add builds.sr.ht manifest 2020-03-18 10:28:58 +01:00
.gitignore doc: document "network delete" 2020-04-01 17:38:09 +02:00
bridge.go Add downstream TOPIC support 2020-03-26 22:27:46 +01:00
conn.go Introduce conn for common connection logic 2020-04-03 16:35:08 +02:00
db.go Add ability to change password 2020-04-10 10:09:02 +02:00
downstream.go Per-entity ring buffers 2020-04-10 19:22:47 +02:00
go.mod Remove some IRCv3 constants 2020-03-19 14:51:45 +01:00
go.sum Remove some IRCv3 constants 2020-03-19 14:51:45 +01:00
irc.go Request server-time cap 2020-03-31 19:45:04 +02:00
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
logger.go Parse timestamp from message tags in messageLogger.Append 2020-04-08 10:19:33 +02:00
Makefile Move man page to doc/ 2020-03-27 19:23:41 +01:00
README.md readme: advise connecting with "<username>/<network>" 2020-03-31 18:41:14 +02:00
ring.go Remove Ring.consumers 2020-04-07 14:46:31 +02:00
schema.sql schema: add Network.name 2020-03-19 00:06:48 +01:00
server.go Introduce conn for common connection logic 2020-04-03 16:35:08 +02:00
service.go Allow users to change password in client 2020-04-10 10:16:25 +02:00
upstream.go Per-entity ring buffers 2020-04-10 19:22:47 +02:00
user.go Per-entity ring buffers 2020-04-10 19:22:47 +02:00

soju

A user-friendly IRC bouncer.

  • Multi-user
  • Support multiple clients for a single user, with proper backlog synchronization
  • Support connecting to multiple upstream servers via a single IRC connection to the bouncer

Usage

sqlite3 soju.db <schema.sql
go run ./cmd/sojuctl create-user <username>
go run ./cmd/soju

Then connect with username <username>/chat.freenode.net and join #soju.

See the man page at soju.1.scd for more information.

Contributing

Send patches on the mailing list or on GitHub, report bugs on the issue tracker. Discuss in #soju on Freenode.

License

AGPLv3, see LICENSE.

Copyright (C) 2020 Simon Ser