Transmit WelcomeText in ServerSync.

This commit is contained in:
Mikkel Krautz 2011-05-13 19:07:05 +02:00
parent 37fe6dd0c2
commit 07cc7f1aa8

View file

@ -603,6 +603,7 @@ func (server *Server) finishAuthenticate(client *Client) {
sync := &mumbleproto.ServerSync{}
sync.Session = proto.Uint32(client.Session)
sync.MaxBandwidth = proto.Uint32(server.cfg.Uint32Value("MaxBandwidth"))
sync.WelcomeText = proto.String(server.cfg.StringValue("WelcomeText"))
if client.IsSuperUser() {
sync.Permissions = proto.Uint64(uint64(AllPermissions))
} else {