soju forked to be LESS SHIT
Go to file
delthas f08063c943
Fix parsing wrong empty element in RPL_WHOISCHANNELS channel list
Some servers add a trailing space to the channel list in
RPL_WHOISCHANNELS. This commit works around this issue by removing any
empty trailing element after splitting.

Since RPL_WHOISCHANNELS could send an empty channel parameter, we can't
just use strings.TrimRight(s, " "), because splitting on an empty string
would still return an empty element.

Closes: https://todo.sr.ht/~emersion/soju/25
2020-03-27 22:53:21 +01:00
cmd Rename project to soju 2020-03-13 18:13:03 +01:00
config Rename project to soju 2020-03-13 18:13:03 +01:00
doc doc: add basic architecture document 2020-03-27 19:49:55 +01:00
.build.yml ci: add builds.sr.ht manifest 2020-03-18 10:28:58 +01:00
.gitignore gitignore: add soju.db and soju.1 2020-03-25 13:44:32 +01:00
bridge.go Add downstream TOPIC support 2020-03-26 22:27:46 +01:00
db.go Stop accessing user data in downstreamConn.authenticate 2020-03-27 22:38:38 +01:00
downstream.go Stop accessing user data in downstreamConn.authenticate 2020-03-27 22:38:38 +01: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 Add upstream RPL_CREATIONTIME support 2020-03-26 22:33:44 +01: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 Fix deadlocks in single-upstream mode 2020-03-20 10:42:17 +01:00
ring.go Add more details to ring buffer panics 2020-03-24 09:22:40 +01:00
schema.sql schema: add Network.name 2020-03-19 00:06:48 +01:00
server.go Get rid of Server.downstreamConns 2020-03-27 22:24:12 +01:00
service.go Add a "network status" command 2020-03-25 22:57:48 +01:00
upstream.go Fix parsing wrong empty element in RPL_WHOISCHANNELS channel list 2020-03-27 22:53:21 +01:00
user.go Nuke user.lock 2020-03-27 19:17:58 +01: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