Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
Fix #155: Admin settings not being respected
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugrieger committed Jun 25, 2016
1 parent 1731047 commit b24417d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion bot/mumbledj.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b24417d

Please sign in to comment.