tipjar 0.1.191 → 0.1.192

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Bitbot::Balance
2
2
  def on_balance(m)
3
- user_id = db.get_or_create_user_id_for_username(m.user.user)
3
+ user_id = db.get_or_create_user_id_for_username(m.user.nick)
4
4
  m.reply "Your current balance is #{satoshi_with_usd(db.get_balance_for_user_id(user_id))}"
5
5
  m.reply "Please note that a transaction fee of #{satoshi_to_str(withdrawal_fee)} will be added to your withdrawal"
6
6
  end
@@ -111,7 +111,7 @@ module Bitbot::Common
111
111
  btc_str = btc_str.irc(:green)
112
112
  end
113
113
 
114
- usd_str = "[".irc(:grey) + satoshi_to_usd(satoshi).irc(:orange) + "]".irc(:grey)
114
+ usd_str = "[".irc(:grey) + satoshi_to_usd(satoshi).irc(:white) + "]".irc(:grey)
115
115
 
116
116
  "#{btc_str} #{usd_str}"
117
117
  end
@@ -1,6 +1,6 @@
1
1
  module Bitbot::Deposit
2
2
  def on_deposit(m, create = true)
3
- user_id = db.get_or_create_user_id_for_username(m.user.user)
3
+ user_id = db.get_or_create_user_id_for_username(m.user.nick)
4
4
 
5
5
  unless cached_addresses
6
6
  m.reply "Sorry, TipJar is initializing its database. Please try again in a minute."
@@ -3,7 +3,7 @@
3
3
  module Bitbot::Tip
4
4
  def on_tip(m, recipient, amount, message)
5
5
  # Look up sender
6
- user_id = db.get_or_create_user_id_for_username(m.user.user)
6
+ user_id = db.get_or_create_user_id_for_username(m.user.nick)
7
7
 
8
8
  # Look up recipient
9
9
  recipient_ircuser = m.channel.users.keys.find {|u| u.name == recipient }
@@ -4,7 +4,7 @@ module Bitbot::Withdraw
4
4
  satoshi = str_to_satoshi($1)
5
5
  address = $2
6
6
 
7
- user_id = db.get_or_create_user_id_for_username(m.user.user)
7
+ user_id = db.get_or_create_user_id_for_username(m.user.nick)
8
8
 
9
9
  # Perform the local transaction in the database. Note that we
10
10
  # don't do the blockchain update in the transaction, because we
data/tipjar.gemspec CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tipjar}
5
- s.version = "0.1.191"
5
+ s.version = "0.1.192"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["WeirdThall", "Zach Wily"]
8
8
  s.email = ["weirdthall@gmail.com", "zach@zwily.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tipjar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.191
4
+ version: 0.1.192
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: