fixed condition

This commit is contained in:
Niko Storni 2016-08-30 20:00:19 +02:00
parent 68230b25e6
commit 3817ec8e33

View file

@ -41,7 +41,7 @@ function respond(bot, data) {
return; return;
} }
if (!tipper.is_admin || !tipper.is_owner || channel.name !== "bot-sandbox" ){ if ((!tipper.is_admin || !tipper.is_owner) && channel.name !== "bot-sandbox" ){
bot.postMessage(channel, 'Please help keep the channel clean: use #bot-sandbox', globalSlackParams); bot.postMessage(channel, 'Please help keep the channel clean: use #bot-sandbox', globalSlackParams);
} }