lib/bitbot/plugin/tip.rb in tipjar-0.1.191 vs lib/bitbot/plugin/tip.rb in tipjar-0.1.192
- old
+ new
@@ -1,10 +1,10 @@
# 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.user)
+ user_id = db.get_or_create_user_id_for_username(m.user.nick)
# 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.")