lib/bitbot/plugin/tip.rb in tipjar-0.1.194 vs lib/bitbot/plugin/tip.rb in tipjar-0.1.195

- old
+ new

@@ -1,11 +1,11 @@ # coding: utf-8 module Bitbot::Tip def on_tip(m, recipient, amount, message) # Look up sender - user_id = db.get_or_create_user_id_for_username(m.user.nick) + user_id = db.get_or_create_user_id_for_username(m.user.user) # Look up recipient recipient_ircuser = m.channel.users.keys.find {|u| u.name == recipient } unless recipient_ircuser m.user.msg("Could not find #{recipient} in the channel list.") @@ -28,11 +28,11 @@ return end # Success! Let the room know... m.reply "[✔] Verified: ".irc(:grey).irc(:bold) + - m.user.nick.irc(:bold) + + m.user.user.irc(:bold) + " ➜ ".irc(:grey) + satoshi_with_usd(satoshi) + " ➜ ".irc(:grey) + recipient_ircuser.user.irc(:bold) @@ -45,10 +45,10 @@ " bringing your balance to " + satoshi_with_usd(db.get_balance_for_user_id(user_id)) + "." # ... and let the recipient know privately. - recipient_ircuser.msg m.user.nick.irc(:bold) + + recipient_ircuser.msg m.user.user.irc(:bold) + " just sent you " + satoshi_with_usd(satoshi) + " in " + m.channel.name.irc(:bold) + " bringing your balance to " +