Skip to content

Commit

Permalink
fixed bug w/ take points
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonp committed Oct 17, 2014
1 parent 61d235b commit 3256935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botspade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,9 @@ def check_for_raffle_entry(message, nick)
# Method for Spade to take points from naughty viewers
# !take user points
on :channel, /^!take (.*) (.*)/i do |first, last|
person = first.downcase
points = last.to_i
if user_is_an_admin?(nick) && points > 0
person = first.downcase
points = last.to_i
take_points(person, points)
end
end
Expand Down

0 comments on commit 3256935

Please sign in to comment.