soju forked to be LESS SHIT
Go to file
Simon Ser 8f29ae41a2
Introduce internal message IDs
For now, these can be used as cursors in the logs. Future patches will
introduce functions that perform log queries with message IDs.

The IDs are state-less tokens containing all the required information to
refer to an on-disk log line: network name, entity name, date and byte
offset. The byte offset doesn't need to point to the first byte of the
line, any byte will do (note, this makes it so message IDs aren't
necessarily unique, we may want to change that in the future).

These internal message IDs are not exposed to clients because we don't
support upstream message IDs yet.
2020-08-20 20:05:01 +02:00
cmd Add an ident server 2020-08-11 10:59:06 +02:00
config config: make http-origin directive overwrite previous list 2020-07-22 18:07:55 +02:00
contrib contrib/znc-import: new utility 2020-07-09 11:25:25 +02:00
doc doc: add ident server to man page 2020-08-11 11:03:20 +02:00
.build.yml ci: check scdoc is happy 2020-06-10 16:15:20 +02:00
.gitignore doc: document "network delete" 2020-04-01 17:38:09 +02:00
bridge.go Forward RPL_TOPICWHOTIME to downstreams 2020-08-20 11:12:54 +02:00
conn.go go fmt 2020-08-20 09:13:56 +02:00
db.go Fix store user query values 2020-08-18 00:26:59 +02:00
downstream.go Replace networkHistory.offlineClients with clients 2020-08-20 17:38:57 +02:00
go.mod Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
go.sum Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
ident.go ident: remove leftover debug log 2020-08-18 17:57:12 +02:00
irc.go Format CTCP ACTION messages in logs 2020-08-17 15:01:53 +02:00
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
logger.go Introduce internal message IDs 2020-08-20 20:05:01 +02:00
Makefile Move man page to doc/ 2020-03-27 19:23:41 +01:00
README.md readme: update mailing list link 2020-07-24 09:49:54 +02:00
ring.go Remove Ring.consumers 2020-04-07 14:46:31 +02:00
server.go Implement rate limiting for upstream messages 2020-08-19 19:42:33 +02:00
service.go Add user delete command 2020-08-10 15:04:01 +02:00
upstream.go Introduce internal message IDs 2020-08-20 20:05:01 +02:00
user.go Replace networkHistory.offlineClients with clients 2020-08-20 17:38:57 +02:00

soju

builds.sr.ht status

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

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

Server side

To create an admin user and start soju, run these commands:

go run ./cmd/sojuctl create-user <soju username> -admin
go run ./cmd/soju -listen irc+insecure://127.0.0.1:6667

If you're migrating from ZNC, a tool is available to import users, networks and channels from a ZNC config file:

go run ./contrib/znc-import.go <znc config file>

Client side

soju can operate in two different modes: multi upstream and single upstream.

Single upstream mode

In this mode, 1 upstream connection to a irc server = 1 connection to your soju bouncer.

The easiest and fastest way to use this is to specify the address of the server in your username in your client configuration. For example to connect to Freenode, your username will be: <soju username>/chat.freenode.net. Also set your soju password in the password field of your client configuration.

This will autoconfigure soju by adding a network with the address chat.freenode.net and then autoconnect to it. You will now be able to join any channel like you would normally do.

Multi upstream mode

In this mode, a single connection to your soju bouncer can handle multiple upstream connections. You will need to manually configure each upstream connection using the the special BouncerServ user.

Connect to your soju server by specifying your soju username in the username field in your client and your password in the password field.

You should now be able to send private messages to the BouncerServ. You can send it commands to configure soju. Create new networks:

/msg BouncerServ network create -addr chat.freenode.net -name freenode
/msg BouncerServ network create -addr irc.rizon.net -name rizon

You will now be able to join channels on these networks by specifying their name:

/join #soju/freenode
/join #somechannel/rizon

Notes

soju will automatically save and restore the channels you were connected to.

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 The soju Contributors