ignore multiple spaces
This commit is contained in:
parent
ca69ef4c70
commit
9eec78ba05
1 changed files with 1 additions and 1 deletions
|
@ -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:'});
|
||||
|
|
Loading…
Reference in a new issue