Fix SuperUser handling on new servers.

This commit is contained in:
Mikkel Krautz 2011-05-20 12:30:24 +02:00
parent 5a2e3331d9
commit fec890da2f
2 changed files with 11 additions and 6 deletions

View file

@ -155,6 +155,8 @@ func NewServer(id int64, addr string, port int) (s *Server, err os.Error) {
s.clientAuthenticated = make(chan *Client)
s.Users[0], err = NewUser(0, "SuperUser")
s.UserNameMap["SuperUser"] = s.Users[0]
s.Channels = make(map[int]*Channel)
s.root = s.NewChannel(0, "Root")
s.aclcache = NewACLCache()