_default_wallet is not _default_wallet_for
This commit is contained in:
parent
8e2a3be90d
commit
ec96eda1a3
1 changed files with 2 additions and 2 deletions
|
@ -623,7 +623,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
self._take_from_pool(server, interest)
|
self._take_from_pool(server, interest)
|
||||||
|
|
||||||
wallets = server.get_user_setting(nickname, "wallets", {})
|
wallets = server.get_user_setting(nickname, "wallets", {})
|
||||||
default_wallet = self._default_wallet_for(
|
default_wallet = self._default_wallet(
|
||||||
server.get_user(nickname), "interest")
|
server.get_user(nickname), "interest")
|
||||||
default_coins = wallets.get(default_wallet, "0.0")
|
default_coins = wallets.get(default_wallet, "0.0")
|
||||||
default_coins = decimal.Decimal(default_coins)
|
default_coins = decimal.Decimal(default_coins)
|
||||||
|
@ -727,7 +727,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
coins = self._get_user_coins(user)
|
coins = self._get_user_coins(user)
|
||||||
winnings = decimal.Decimal(LOTTERY_BUYIN)*len(users)
|
winnings = decimal.Decimal(LOTTERY_BUYIN)*len(users)
|
||||||
new_coins = coins+winnings
|
new_coins = coins+winnings
|
||||||
wallet = self._default_wallet_for(user, "lottery")
|
wallet = self._default_wallet(user, "lottery")
|
||||||
|
|
||||||
self._give(server, user, winnings, wallet)
|
self._give(server, user, winnings, wallet)
|
||||||
server.set_setting("lottery-winner", user.nickname)
|
server.set_setting("lottery-winner", user.nickname)
|
||||||
|
|
Loading…
Reference in a new issue