mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Do not print balance again for 0
This commit is contained in:
parent
14af9b3eb2
commit
fac37aa80b
1 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,10 @@ def GetBalance(nick,chan,cmd):
|
|||
balance = long(balance)
|
||||
sbalance = AmountToString(balance)
|
||||
if balance < coinspecs.atomic_units:
|
||||
SendTo(sendto, "%s's balance is %s (%.16g %s)" % (nick, sbalance, float(balance) / coinspecs.atomic_units, coinspecs.name))
|
||||
if balance == 0:
|
||||
SendTo(sendto, "%s's balance is %s" % (nick, sbalance))
|
||||
else:
|
||||
SendTo(sendto, "%s's balance is %s (%.16g %s)" % (nick, sbalance, float(balance) / coinspecs.atomic_units, coinspecs.name))
|
||||
else:
|
||||
SendTo(sendto, "%s's balance is %s" % (nick, sbalance))
|
||||
except Exception, e:
|
||||
|
|
Loading…
Reference in a new issue