pull/157/head v3.0.5
Matthieu Grieger 2016-06-25 10:43:33 -07:00
parent 1731047317
commit b24417deda
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
MumbleDJ Changelog
==================
### June 25, 2016 -- `v3.0.5`
* Fixed admin settings not being respected.
### June 25, 2016 -- `v3.0.4`
* Fixed a crash on `!forceskip`.

View File

@ -268,7 +268,7 @@ func (dj *MumbleDJ) findCommand(message string) (interfaces.Command, error) {
func (dj *MumbleDJ) executeCommand(user *gumble.User, message string, command interfaces.Command) (string, bool, error) {
canExecute := false
if viper.GetBool("permissions.enabled") && command.IsAdminCommand() {
if viper.GetBool("admins.enabled") && command.IsAdminCommand() {
canExecute = dj.IsAdmin(user)
} else {
canExecute = true

View File

@ -32,7 +32,7 @@ func init() {
services.DJ = DJ
bot.DJ = DJ
DJ.Version = "v3.0.4"
DJ.Version = "v3.0.5"
logrus.SetLevel(logrus.WarnLevel)
}