ignore multiple spaces

This commit is contained in:
Alex Grintsvayg 2016-08-04 12:33:26 -04:00
parent ca69ef4c70
commit 9eec78ba05

View file

@ -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:'});