This commit is contained in:
azlux 2016-06-17 18:17:35 +02:00 committed by GitHub
parent 73cdb8a247
commit d33299f35b

View file

@ -97,13 +97,13 @@ func parseCommand(user *gumble.User, username, command string) {
} else { } else {
dj.SendPrivateMessage(user, NO_PERMISSION_MSG) dj.SendPrivateMessage(user, NO_PERMISSION_MSG)
} }
// JoinMe command // JoinMe command
case dj.conf.Aliases.JoinMeAlias: case dj.conf.Aliases.JoinMeAlias:
if dj.HasPermission(username, dj.conf.Permissions.AdminJoinMe) { if dj.HasPermission(username, dj.conf.Permissions.AdminJoinMe) {
joinMe(user) joinMe(user)
} else { } else {
dj.SendPrivateMessage(user, NO_PERMISSION_MSG) dj.SendPrivateMessage(user, NO_PERMISSION_MSG)
} }
// Reload command // Reload command
case dj.conf.Aliases.ReloadAlias: case dj.conf.Aliases.ReloadAlias:
if dj.HasPermission(username, dj.conf.Permissions.AdminReload) { if dj.HasPermission(username, dj.conf.Permissions.AdminReload) {