From 3817ec8e330cb98fc3c645be13a390dd0344833a Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 30 Aug 2016 20:00:19 +0200 Subject: [PATCH] fixed condition --- bots/tipbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/tipbot.js b/bots/tipbot.js index 911e0f2..9e4dfdc 100644 --- a/bots/tipbot.js +++ b/bots/tipbot.js @@ -41,7 +41,7 @@ function respond(bot, data) { 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); }