lib/bitbot/plugin/tip.rb in bitbot-0.0.2 vs lib/bitbot/plugin/tip.rb in bitbot-0.0.3
- old
+ new
@@ -12,10 +12,10 @@
return
end
recipient_user_id = db.get_or_create_user_id_for_username(recipient_ircuser.user)
# Convert amount to satoshi
- satoshi = (amount.to_f * 10**8).to_i
+ satoshi = str_to_satoshi(amount)
if satoshi <= 0
m.user.msg("Cannot send a negative amount.")
return
end