mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Send correct config values in MessageServerConfig.
This commit is contained in:
parent
07cc7f1aa8
commit
0b086d6f57
2 changed files with 3 additions and 5 deletions
|
|
@ -1092,8 +1092,6 @@ func (server *Server) handleAclMessage(client *Client, msg *Message) {
|
|||
|
||||
server.ClearACLCache()
|
||||
}
|
||||
|
||||
// fixme(mkrautz): Sync channel to datastore
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -622,9 +622,9 @@ func (server *Server) finishAuthenticate(client *Client) {
|
|||
}
|
||||
|
||||
err := client.sendProtoMessage(MessageServerConfig, &mumbleproto.ServerConfig{
|
||||
AllowHtml: proto.Bool(true),
|
||||
MessageLength: proto.Uint32(1000),
|
||||
ImageMessageLength: proto.Uint32(1000),
|
||||
AllowHtml: proto.Bool(server.cfg.BoolValue("AllowHTML")),
|
||||
MessageLength: proto.Uint32(server.cfg.Uint32Value("MaxTextMessageLength")),
|
||||
ImageMessageLength: proto.Uint32(server.cfg.Uint32Value("MaxImageMessageLength")),
|
||||
})
|
||||
if err != nil {
|
||||
client.Panicf("%v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue