mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 03:37:35 +01:00
More dice limits
This commit is contained in:
parent
d486fc4e44
commit
b8a3ef5b56
@ -2360,7 +2360,11 @@ function diceRoller($post) {
|
||||
$diceY = intval($diceY);
|
||||
$diceZ = intval($diceZ);
|
||||
|
||||
// Arbitrary maximum number of dice
|
||||
// Apply sane limits
|
||||
if ($diceY > 1024) {
|
||||
$diceY = 1024;
|
||||
}
|
||||
|
||||
if ($diceX > 200) {
|
||||
$diceX = 200;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user