Skip to content

Commit

Permalink
Merge pull request LBRYFoundation#18 from ProfessorDey/patch-2
Browse files Browse the repository at this point in the history
Sanitise User Check
  • Loading branch information
nikooo777 authored Mar 1, 2018
2 parents ea8773f + a2d1910 commit 22af3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/modules/tipbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function doTip(message, tipper, words, helpmsg) {
return message.reply("I don't know how to tip that many credits...").then(message => message.delete(5000));
}

if (message.mentions.users.first().id) {
if (message.mentions.users.first() && message.mentions.users.first().id) {
return sendLBC(message, tipper, message.mentions.users.first().id.replace('!', ''), amount, prv);
}
message.reply('Sorry, I could not find a user in your tip...');
Expand Down

0 comments on commit 22af3ed

Please sign in to comment.