contact 7c4131cbdb 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.

git-svn-id: file:///srv/svn/repo/suika/trunk@324 f0ae65fe-ee39-954e-97ec-027ff2717ef4
2020-06-08 09:59:03 +00:00
2020-06-08 09:59:03 +00:00
2020-06-07 12:13:46 +00:00
2020-03-18 09:28:58 +00:00
2020-04-01 15:38:09 +00:00
2020-06-07 12:13:46 +00:00
2020-06-08 09:59:03 +00:00
2020-06-07 12:13:46 +00:00
2020-06-07 12:13:46 +00:00
2020-02-07 16:41:51 +00:00
2020-03-27 18:23:41 +00:00
2020-04-07 12:46:31 +00:00
2020-06-04 15:27:57 +00:00
2020-06-08 09:59:03 +00: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

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

Description
Languages
Go 99.1%
Makefile 0.5%
Shell 0.4%