mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
gofmt run.
This commit is contained in:
parent
a57908b487
commit
c2f3f0de47
3 changed files with 55 additions and 54 deletions
|
|
@ -114,11 +114,13 @@ func (client *Client) udpreceiver() {
|
|||
return
|
||||
}
|
||||
|
||||
kind := (buf[0] >> 5) & 0x07;
|
||||
kind := (buf[0] >> 5) & 0x07
|
||||
|
||||
switch kind {
|
||||
case UDPMessageVoiceSpeex: fallthrough;
|
||||
case UDPMessageVoiceCELTAlpha: fallthrough;
|
||||
case UDPMessageVoiceSpeex:
|
||||
fallthrough
|
||||
case UDPMessageVoiceCELTAlpha:
|
||||
fallthrough
|
||||
case UDPMessageVoiceCELTBeta:
|
||||
kind := buf[0] & 0xe0
|
||||
target := buf[0] & 0x1f
|
||||
|
|
@ -305,4 +307,3 @@ func (client *Client) sendUserList() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ func (server *Server) handleTextMessage(client *Client, msg *Message) {
|
|||
return
|
||||
}
|
||||
|
||||
users := []*Client{};
|
||||
users := []*Client{}
|
||||
for i := 0; i < len(txtmsg.Session); i++ {
|
||||
user, ok := server.clients[txtmsg.Session[i]]
|
||||
if !ok {
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ func (server *Server) updateCodecVersions() {
|
|||
server.PreferAlphaCodec = !server.PreferAlphaCodec
|
||||
}
|
||||
|
||||
if (server.PreferAlphaCodec) {
|
||||
if server.PreferAlphaCodec {
|
||||
server.AlphaCodec = winner
|
||||
} else {
|
||||
server.BetaCodec = winner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue