soju forked to be LESS SHIT
Go to file
Simon Ser 998546cdc3
Introduce User.Created
For Network and Channel, the database only needed to define one Store
operation to create/update a record. However since User is missing an ID
we couldn't have a single StoreUser function like other types. We had
CreateUser and UpdatePassword. As new User fields get added (e.g. the
upcoming Admin flag) this isn't sustainable.

We could have CreateUser and UpdateUser, but this wouldn't be consistent
with other types. Instead, introduce User.Created which indicates
whether the record is already stored in the DB. This can be used in a
new StoreUser function to decide whether we need to UPDATE or INSERT
without relying on SQL constraints and INSERT OR UPDATE.

The ListUsers and GetUser functions set User.Created to true.
2020-06-08 11:59:03 +02:00
cmd Introduce User.Created 2020-06-08 11:59:03 +02:00
config Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
doc Add support for WebSocket connections 2020-06-07 14:13:46 +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
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
Makefile Move man page to doc/ 2020-03-27 19:23:41 +01:00
README.md Allow multiple listeners, default to ircs 2020-06-04 20:16:23 +02:00
bridge.go Add support for multiple user channel memberships 2020-05-11 12:25:49 +02:00
conn.go Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
db.go Introduce User.Created 2020-06-08 11:59:03 +02:00
downstream.go Add support for WebSocket connections 2020-06-07 14:13:46 +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
irc.go Add support for TAGMSG and client message tags 2020-05-27 23:48:08 +02:00
logger.go Add support for downstream CHATHISTORY 2020-06-05 23:50:31 +02:00
ring.go Remove Ring.consumers 2020-04-07 14:46:31 +02:00
server.go Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
service.go Introduce ircConn 2020-06-04 17:27:57 +02:00
upstream.go Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
user.go Introduce User.Created 2020-06-08 11:59:03 +02:00

README.md

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

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

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

See the man page at doc/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