From cf689927d99b8d6d52cd2206286d4e29fc8751da Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 30 Aug 2016 20:41:59 +0200 Subject: [PATCH] added obviously missing return --- bots/tipbot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/tipbot.js b/bots/tipbot.js index 9e4dfdc..4444a12 100644 --- a/bots/tipbot.js +++ b/bots/tipbot.js @@ -42,7 +42,8 @@ function respond(bot, data) { } 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); + return; } var subcommand = words.length >= 2 ? words[1] : 'help';