Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-12 20:46:32 +01:00
parent ee8578119f
commit 48377ece09

View file

@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/layeh/gumble/gumble" "github.com/layeh/gumble/gumble"
"github.com/layeh/gumble/gumbleutil"
"time" "time"
) )
@ -26,12 +27,14 @@ func Test(password, ip, port string, accesstokens []string) {
} }
func (t TestSettings) createClient(uname string) *gumble.Client { func (t TestSettings) createClient(uname string) *gumble.Client {
return gumble.NewClient(&gumble.Config{ client := gumble.NewClient(&gumble.Config{
Username: uname, Username: uname,
Password: t.password, Password: t.password,
Address: t.ip + ":" + t.port, Address: t.ip + ":" + t.port,
Tokens: t.accesstokens, Tokens: t.accesstokens,
}) })
gumbleutil.CertificateLockFile(client, fmt.Sprintf("%s/.mumbledj/cert.lock", dj.homeDir))
return client
} }
func (t TestSettings) testYoutubeSong() { func (t TestSettings) testYoutubeSong() {