README
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
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
Documentation
Index ¶
- type Channel
- type DB
- func (db *DB) Close() error
- func (db *DB) DeleteChannel(id int64) error
- func (db *DB) DeleteNetwork(id int64) error
- func (db *DB) DeleteUser(id int64) error
- func (db *DB) GetUser(username string) (*User, error)
- func (db *DB) ListChannels(networkID int64) ([]Channel, error)
- func (db *DB) ListNetworks(userID int64) ([]Network, error)
- func (db *DB) ListUsers() ([]User, error)
- func (db *DB) StoreChannel(networkID int64, ch *Channel) error
- func (db *DB) StoreNetwork(userID int64, network *Network) error
- func (db *DB) StoreUser(user *User) error
- type Identd
- type Logger
- type MessageFilter
- type Network
- type SASL
- type Server
- type User
Constants ¶
Variables ¶
Functions ¶
Types ¶
type Channel ¶
type Channel struct { ID int64 Name string Key string Detached bool RelayDetached MessageFilter ReattachOn MessageFilter DetachAfter time.Duration DetachOn MessageFilter }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteChannel ¶
func (*DB) DeleteNetwork ¶
func (*DB) DeleteUser ¶
type Identd ¶
type Identd struct {
// contains filtered or unexported fields
}
Identd implements an ident server, as described in RFC 1413.
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) }
type MessageFilter ¶
type MessageFilter int
const ( // TODO: use customizable user defaults for FilterDefault FilterDefault MessageFilter = iota FilterNone FilterHighlight FilterMessage )