Fixed typo in mumbledj.gcfg

This commit is contained in:
Matthieu Grieger 2015-03-20 21:21:00 -07:00
parent 579245900b
commit 3ecee614ca
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# MumbleDJ
# By Matthieu Grieger
# config.toml
# config.gcfg
# Copyright (c) 2014 Matthieu Grieger (MIT License)
[General]

View file

@ -70,13 +70,14 @@ type DjConfig struct {
AdminCacheSize bool
AdminKill bool
}
}
}
// Loads mumbledj.gcfg into dj.conf, a variable of type DjConfig.
func loadConfiguration() error {
if gcfg.ReadFileInto(&dj.conf, fmt.Sprintf("%s/.mumbledj/config/mumbledj.gcfg", dj.homeDir)) == nil {
return nil
} else {
fmt.Printf("%s/.mumbledj/config/mumbledj.gcfg\n", dj.homeDir)
return errors.New("Configuration load failed.")
}
}