]> git.0d.be Git - barnard.git/commitdiff
update due to gumble changes
authorTim Cooper <tim.cooper@layeh.com>
Sun, 24 May 2015 00:40:53 +0000 (21:40 -0300)
committerTim Cooper <tim.cooper@layeh.com>
Sun, 24 May 2015 00:40:53 +0000 (21:40 -0300)
barnard.go
cmd/barnard/main.go

index 0b51e01683518310f54c6504b560af784cd7bdce..4b0045e1802d90de678d64ac89f248130b0e1b3c 100644 (file)
@@ -7,7 +7,7 @@ import (
 )
 
 type Barnard struct {
-       Config gumble.Config
+       Config *gumble.Config
        Client *gumble.Client
 
        Stream *gumble_openal.Stream
index b4b8302c92e0d4b5114441b07b645e22089d04ff..8b2a331cdd8eef6a4d95ddd8e30679bd3dd25d79 100644 (file)
@@ -27,10 +27,9 @@ func main() {
        b.Ui = uiterm.New(&b)
 
        // Gumble
-       b.Config = gumble.Config{
-               Username: *username,
-               Address:  *server,
-       }
+       b.Config = gumble.NewConfig()
+       b.Config.Username = *username
+       b.Config.Address = *server
        if *insecure {
                b.Config.TLSConfig.InsecureSkipVerify = true
        }
@@ -43,7 +42,7 @@ func main() {
                }
        }
 
-       b.Client = gumble.NewClient(&b.Config)
+       b.Client = gumble.NewClient(b.Config)
        b.Client.Attach(gumbleutil.AutoBitrate)
        b.Client.Attach(&b)
        // Audio