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