lib/bitbot/plugin/withdraw.rb in tipjar-0.1.194 vs lib/bitbot/plugin/withdraw.rb in tipjar-0.1.195
- old
+ new
@@ -2,10 +2,10 @@
def on_withdraw(m, args)
if args =~ /\s+([\d.]+)\s+([13][0-9a-zA-Z]{26,35})/
satoshi = str_to_satoshi($1)
address = $2
- 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)
# Perform the local transaction in the database. Note that we
# don't do the blockchain update in the transaction, because we
# don't want to roll back the transaction if the blockchain update
# *appears* to fail. It might look like it failed, but really