mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Transmit WelcomeText in ServerSync.
This commit is contained in:
parent
37fe6dd0c2
commit
07cc7f1aa8
1 changed files with 1 additions and 0 deletions
|
|
@ -603,6 +603,7 @@ func (server *Server) finishAuthenticate(client *Client) {
|
||||||
sync := &mumbleproto.ServerSync{}
|
sync := &mumbleproto.ServerSync{}
|
||||||
sync.Session = proto.Uint32(client.Session)
|
sync.Session = proto.Uint32(client.Session)
|
||||||
sync.MaxBandwidth = proto.Uint32(server.cfg.Uint32Value("MaxBandwidth"))
|
sync.MaxBandwidth = proto.Uint32(server.cfg.Uint32Value("MaxBandwidth"))
|
||||||
|
sync.WelcomeText = proto.String(server.cfg.StringValue("WelcomeText"))
|
||||||
if client.IsSuperUser() {
|
if client.IsSuperUser() {
|
||||||
sync.Permissions = proto.Uint64(uint64(AllPermissions))
|
sync.Permissions = proto.Uint64(uint64(AllPermissions))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue