Skip to content

Commit

Permalink
actually fixed it
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonp committed Jul 9, 2014
1 parent 335264b commit 7437f4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions botspade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,12 @@ def user_is_an_admin?(user)
person = first.downcase
points = last.to_i
if user_is_an_admin?(nick)
give_points(person, points)
msg channel, "#{nick} has given #{person} #{points} #{@botmaster} Points"
if get_user(person)
give_points(person, points)
msg channel, "#{nick} has given #{person} #{points} #{@botmaster} Points"
else
msg channel, "You can only give points to someone who has checked in at least once!"
end
else
if get_user(person)
if person_has_enough_points(nick, points)
Expand Down

0 comments on commit 7437f4b

Please sign in to comment.