1
0
Fork 0
forked from External/ergo

registration: Hook up reg to actual accounts

This commit is contained in:
Daniel Oaks 2016-09-05 22:54:09 +10:00
parent 5269dc8776
commit e3fbdebc48
4 changed files with 29 additions and 4 deletions

View file

@ -27,7 +27,7 @@ import (
)
type Server struct {
accounts map[string]ClientAccount
accounts map[string]*ClientAccount
channels ChannelNameMap
clients *ClientLookupSet
commands chan Command
@ -67,7 +67,7 @@ type clientConn struct {
func NewServer(config *Config) *Server {
server := &Server{
accounts: make(map[string]ClientAccount),
accounts: make(map[string]*ClientAccount),
channels: make(ChannelNameMap),
clients: NewClientLookupSet(),
commands: make(chan Command),