Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-27 22:48:56 +01:00
parent f50c1b9d1b
commit 5d02cdb4a5
2 changed files with 3 additions and 3 deletions

View file

@ -164,7 +164,7 @@ func add(user *gumble.User, username, url string) {
if url == "" { if url == "" {
dj.SendPrivateMessage(user, NO_ARGUMENT_MSG) dj.SendPrivateMessage(user, NO_ARGUMENT_MSG)
} else { } else {
var urlService *Service var urlService Service
// Checks all services to see if any can take the URL // Checks all services to see if any can take the URL
for _, service := range services { for _, service := range services {

View file

@ -148,14 +148,14 @@ var dj = mumbledj{
cache: NewSongCache(), cache: NewSongCache(),
} }
var services []*Service var services []Service
// main primarily performs startup tasks. Grabs and parses commandline // main primarily performs startup tasks. Grabs and parses commandline
// args, sets up the gumble client and its listeners, and then connects to the server. // args, sets up the gumble client and its listeners, and then connects to the server.
func main() { func main() {
PerformStartupChecks() PerformStartupChecks()
services = []Service{new(Youtube)} services = []Service{Youtube{}}
if currentUser, err := user.Current(); err == nil { if currentUser, err := user.Current(); err == nil {
dj.homeDir = currentUser.HomeDir dj.homeDir = currentUser.HomeDir