Fixing build issues
This commit is contained in:
parent
f50c1b9d1b
commit
5d02cdb4a5
|
@ -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 {
|
||||
|
|
4
main.go
4
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
|
||||
|
|
Reference in a new issue