From 77723f494191787db2ea090f01754006f41e1908 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Wed, 12 Aug 2015 19:54:56 +0100 Subject: [PATCH] Fixing build errors --- circle.yml | 12 ++++++------ commands.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index fa81c7e..937a4af 100644 --- a/circle.yml +++ b/circle.yml @@ -12,12 +12,12 @@ dependencies: - make - make install cache_directories: - - $HOME/opus - - $HOME/bin - - $HOME/gopath/bin - - $HOME/gopath/pkg - - $HOME/gopath/src/github.com/nitrous-io - - $HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor + - "$HOME/opus" + - "$HOME/bin" + - "$HOME/gopath/bin" + - "$HOME/gopath/pkg" + - "$HOME/gopath/src/github.com/nitrous-io" + - "$HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor" test: override: - mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true: diff --git a/commands.go b/commands.go index 5dc19b7..e0413cc 100644 --- a/commands.go +++ b/commands.go @@ -161,7 +161,7 @@ func parseCommand(user *gumble.User, username, command string) { } // Test command (WORKAROUND) case "test": - if dj.HasPermission(username, dj.conf.Permissions.AdminKill) && test != nil { + if dj.HasPermission(username, dj.conf.Permissions.AdminKill) { test.testYoutubeSong() } else { dj.SendPrivateMessage(user, NO_PERMISSION_MSG)