Fixed typo in mumbledj.gcfg
This commit is contained in:
parent
579245900b
commit
3ecee614ca
|
@ -1,6 +1,6 @@
|
|||
# MumbleDJ
|
||||
# By Matthieu Grieger
|
||||
# config.toml
|
||||
# config.gcfg
|
||||
# Copyright (c) 2014 Matthieu Grieger (MIT License)
|
||||
|
||||
[General]
|
||||
|
|
|
@ -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.")
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue