Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-12 19:54:56 +01:00
parent 43f412e722
commit 77723f4941
2 changed files with 7 additions and 7 deletions

View file

@ -12,12 +12,12 @@ dependencies:
- make - make
- make install - make install
cache_directories: cache_directories:
- $HOME/opus - "$HOME/opus"
- $HOME/bin - "$HOME/bin"
- $HOME/gopath/bin - "$HOME/gopath/bin"
- $HOME/gopath/pkg - "$HOME/gopath/pkg"
- $HOME/gopath/src/github.com/nitrous-io - "$HOME/gopath/src/github.com/nitrous-io"
- $HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor - "$HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor"
test: test:
override: override:
- mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true: - mumbledj -server=$MUMBLE_IP -port=$MUMBLE_PORT -username=circleci -password=$MUMBLE_PASSWORD -verbose=true -test=true:

View file

@ -161,7 +161,7 @@ func parseCommand(user *gumble.User, username, command string) {
} }
// Test command (WORKAROUND) // Test command (WORKAROUND)
case "test": case "test":
if dj.HasPermission(username, dj.conf.Permissions.AdminKill) && test != nil { if dj.HasPermission(username, dj.conf.Permissions.AdminKill) {
test.testYoutubeSong() test.testYoutubeSong()
} else { } else {
dj.SendPrivateMessage(user, NO_PERMISSION_MSG) dj.SendPrivateMessage(user, NO_PERMISSION_MSG)