From 9eec78ba0577eb4391377d5b039543e6c0b6130a Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 4 Aug 2016 12:33:26 -0400 Subject: [PATCH] ignore multiple spaces --- tipbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot.js b/tipbot.js index 3aa07fa..7d232f2 100644 --- a/tipbot.js +++ b/tipbot.js @@ -29,7 +29,7 @@ var globalSlackParams = { function respond(bot, data) { var tipper = data.user, channel = data.channel, - words = data.text.trim().split(' '); + words = data.text.trim().split(' ').filter( function(n){return n !== "";} ); if (!lbry) { bot.postMessage(channel, 'Failed to connect to lbrycrd', {icon_emoji: ':exclamation:'});