This commit is contained in:
Simon Ser 2020-03-04 19:23:24 +01:00
parent 57fd268f77
commit 9db953c7e5
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
3 changed files with 6 additions and 8 deletions

2
db.go
View File

@ -8,8 +8,6 @@ import (
_ "github.com/mattn/go-sqlite3"
)
var ErrNoSuchUser = errors.New("jounce: no such user")
type User struct {
Username string
Password string

View File

@ -95,7 +95,7 @@ func (net *network) run() {
type user struct {
User
srv *Server
srv *Server
lock sync.Mutex
networks []*network
@ -156,10 +156,10 @@ func (u *user) run() {
}
type Server struct {
Hostname string
Logger Logger
RingCap int
Debug bool
Hostname string
Logger Logger
RingCap int
Debug bool
db *DB

View File

@ -67,7 +67,7 @@ func connectToUpstream(network *network) (*upstreamConn, error) {
msgs := make(chan *irc.Message, 64)
uc := &upstreamConn{
network: network,
network: network,
logger: logger,
net: netConn,
irc: irc.NewConn(netConn),