1
0
Fork 0
forked from External/grumble
This commit is contained in:
Tim Cooper 2016-03-25 22:05:23 -03:00
parent 083163daf9
commit 20eba760e5
15 changed files with 163 additions and 163 deletions

View file

@ -330,7 +330,7 @@ func (client *Client) udpRecvLoop() {
case mumbleproto.UDPMessageVoiceCELTAlpha:
fallthrough
case mumbleproto.UDPMessageVoiceCELTBeta:
if (client.server.Opus) {
if client.server.Opus {
return
}
fallthrough

View file

@ -6,8 +6,8 @@ package main
import (
"github.com/golang/protobuf/proto"
"mumble.info/grumble/pkg/replacefile"
"io/ioutil"
"mumble.info/grumble/pkg/replacefile"
"path/filepath"
"strconv"
)

View file

@ -88,7 +88,7 @@ func (acl *ACL) IsChannelACL() bool {
// The permission perm must be a single permission and not a combination of permissions.
func HasPermission(ctx *Context, user User, perm Permission) bool {
// We can't check permissions on a nil ctx.
if (ctx == nil) {
if ctx == nil {
panic("acl: HasPermission got nil context")
}

View file

@ -7,8 +7,8 @@ package cryptstate
import (
"bytes"
"crypto/aes"
"testing"
"encoding/hex"
"testing"
)
func TestOCB2AES128Encrypt(t *testing.T) {

View file

@ -5,8 +5,8 @@
package cryptstate
import (
"unsafe"
"golang.org/x/crypto/nacl/secretbox"
"unsafe"
)
// secretBoxMode implements the XSalsa20-Poly1305 CryptoMode

View file

@ -5,8 +5,8 @@
package replacefile
import (
"unsafe"
"syscall"
"unsafe"
)
var (