mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Fix a few s/identity/nick/ in user facing messages
This commit is contained in:
parent
c48428b0ab
commit
e0cd953dd4
3 changed files with 6 additions and 6 deletions
|
@ -352,7 +352,7 @@ def Unban(link,cmd):
|
|||
sidentity=link.identity()
|
||||
sidentity=IdentityFromString(link,sidentity)
|
||||
redis_hdel('banned',sidentity)
|
||||
link.send('%s was unbanned' % (sidentity))
|
||||
link.send('%s was unbanned' % (NickFromIdentity(sidentity)))
|
||||
except Exception,e:
|
||||
log_error('Failed to unban %s: %s' % (sidentity,str(e)))
|
||||
link.send('An error occured')
|
||||
|
|
|
@ -566,7 +566,7 @@ def Blackjack(link,cmd):
|
|||
total_units_wagered = units + sidebets["total_amount_wagered"]
|
||||
potential_loss = amount * 1.5 + sidebets["potential_loss"] / coinspecs.atomic_units
|
||||
potential_units_loss = long (potential_loss * coinspecs.atomic_units)
|
||||
log_info('%s bets a total of %s, potential loss %s, side bets %s' % (identity, AmountToString(total_units_wagered), AmountToString(potential_units_loss), str(sidebets)))
|
||||
log_info('%s bets a total of %s (%.16g), potential loss %s, side bets %s' % (identity, AmountToString(total_units_wagered), total_amount_wagered, AmountToString(potential_units_loss), str(sidebets)))
|
||||
valid,reason = IsBetValid(link,total_amount_wagered,config.blackjack_min_bet,config.blackjack_max_bet,potential_loss,config.blackjack_max_loss,config.blackjack_max_loss_ratio)
|
||||
if not valid:
|
||||
log_info("Dice: %s's bet refused: %s" % (identity, reason))
|
||||
|
@ -900,8 +900,8 @@ def GetBlackjackStats(link,cmd):
|
|||
return
|
||||
else:
|
||||
sidentity=identity
|
||||
ShowBlackjackStats(link,sidentity,sidentity)
|
||||
ShowBlackjackStats(link,"reset:"+sidentity,'%s since reset' % sidentity)
|
||||
ShowBlackjackStats(link,sidentity,NickFromIdentity(sidentity))
|
||||
ShowBlackjackStats(link,"reset:"+sidentity,'%s since reset' % NickFromIdentity(sidentity))
|
||||
ShowBlackjackStats(link,'','overall')
|
||||
|
||||
def PlayerSeed(link,cmd):
|
||||
|
|
|
@ -135,8 +135,8 @@ def GetDiceStats(link,cmd):
|
|||
return
|
||||
else:
|
||||
sidentity=identity
|
||||
ShowDiceStats(link,sidentity,sidentity)
|
||||
ShowDiceStats(link,"reset:"+sidentity,'%s since reset' % sidentity)
|
||||
ShowDiceStats(link,sidentity,NickFromIdentity(sidentity))
|
||||
ShowDiceStats(link,"reset:"+sidentity,'%s since reset' % NickFromIdentity(sidentity))
|
||||
ShowDiceStats(link,'','overall')
|
||||
|
||||
def ResetDiceStats(link,cmd):
|
||||
|
|
Loading…
Reference in a new issue