Skip to content

Commit

Permalink
fix possible abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearace committed Sep 16, 2014
1 parent 9260fce commit 917bcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chatcommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ var chatHandlers = {
var caller = utils.handle(bot, "getUser", username)
var user2 = utils.handle(bot, "getUser", user)

if (user === bot.username)
if (user === bot.username || !user2)
return

var userAlsoHasPermission = bot.checkPermission(user, 2, "M")
Expand Down

0 comments on commit 917bcf5

Please sign in to comment.