From 5d02cdb4a5de984a906f2dd65564c70a3f4a60e1 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 27 Jul 2015 22:48:56 +0100 Subject: [PATCH] Fixing build issues --- commands.go | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands.go b/commands.go index 7bc5c22..2e8f205 100644 --- a/commands.go +++ b/commands.go @@ -164,7 +164,7 @@ func add(user *gumble.User, username, url string) { if url == "" { dj.SendPrivateMessage(user, NO_ARGUMENT_MSG) } else { - var urlService *Service + var urlService Service // Checks all services to see if any can take the URL for _, service := range services { diff --git a/main.go b/main.go index 4f28da0..ddf6404 100644 --- a/main.go +++ b/main.go @@ -148,14 +148,14 @@ var dj = mumbledj{ cache: NewSongCache(), } -var services []*Service +var services []Service // main primarily performs startup tasks. Grabs and parses commandline // args, sets up the gumble client and its listeners, and then connects to the server. func main() { PerformStartupChecks() - services = []Service{new(Youtube)} + services = []Service{Youtube{}} if currentUser, err := user.Current(); err == nil { dj.homeDir = currentUser.HomeDir