..
This commit is contained in:
parent
26aa803b2e
commit
cbe28a8cbf
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ def generate_dice_message(msg, expr, dice_expr_list, dice_count, times, dc, use_
|
||||||
success_num = 0
|
success_num = 0
|
||||||
fail_num = 0
|
fail_num = 0
|
||||||
output = msg.locale.t('dice.message.output')
|
output = msg.locale.t('dice.message.output')
|
||||||
if times > MAX_ROLL_TIMES:
|
if times <= 0 or times > MAX_ROLL_TIMES:
|
||||||
return DiceValueError(msg,
|
return DiceValueError(msg,
|
||||||
msg.locale.t("dice.message.error.value.N.out_of_range", max=MAX_ROLL_TIMES),
|
msg.locale.t("dice.message.error.value.N.out_of_range", max=MAX_ROLL_TIMES),
|
||||||
times).message
|
times).message
|
||||||
|
|
Reference in a new issue