added obviously missing return

This commit is contained in:
Niko Storni 2016-08-30 20:41:59 +02:00
parent 3817ec8e33
commit cf689927d9

View file

@ -42,7 +42,8 @@ function respond(bot, data) {
} }
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);
return;
} }
var subcommand = words.length >= 2 ? words[1] : 'help'; var subcommand = words.length >= 2 ? words[1] : 'help';