diff --git a/index.js b/index.js index ffa9904..0ff8170 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ function doCommand(client, event, cmd, args) { if(!command) return false; - if((command.owner && event.sender.userId != process.env.OWNER_ID) || (command.admin && event.sender.powerLevel != 100 && event.sender.userId != process.env.OWNER_ID)) { + if((command.owner && event.sender.userId != process.env.OWNER_ID) || (command.admin && event.sender.powerLevel < 100 && event.sender.userId != process.env.OWNER_ID)) { var addl = `Are you sure this command is for you?\nYour power level is ${event.sender.powerLevel}`; client.reply(event, "nuh uh" + addl, 'nuh uh
' + addl); return true;