Skip to content

Commit

Permalink
hotfix: crash on new user betting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonp committed Jul 8, 2014
1 parent d8720c7 commit f858beb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions botspade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,14 @@ def give_points(person, points)
def person_has_enough_points(nick, points_required)
# Newer Fancy Way
user = get_user(nick)
if user[2] < points_required
return FALSE
if (user)
if user[2] < points_required
return FALSE
else
return TRUE
end
else
return TRUE
return FALSE
end
end

Expand Down

0 comments on commit f858beb

Please sign in to comment.