rm dollar on self
This commit is contained in:
parent
c8e573a72d
commit
c3821a2490
|
@ -54,8 +54,8 @@ class GamblingPlugin extends Plugin
|
||||||
$rolls = intval($matches[1]);
|
$rolls = intval($matches[1]);
|
||||||
$faces = intval($matches[2]);
|
$faces = intval($matches[2]);
|
||||||
|
|
||||||
$bad_rolls = $rolls < 1 || $rolls > $self::settings('max_rolls');
|
$bad_rolls = $rolls < 1 || $rolls > self::settings('max_rolls');
|
||||||
$bad_faces = $faces < 2 || $faces > $self::settings('max_faces');
|
$bad_faces = $faces < 2 || $faces > self::settings('max_faces');
|
||||||
|
|
||||||
if ( $bad_rolls || $bad_faces ) {
|
if ( $bad_rolls || $bad_faces ) {
|
||||||
$obj->roll_str = "Bad roll, The correct syntax is: '/roll+XdY' where X is max of " . self::settings('max_rolls'). "& Y is max of " . self::settings('max_faces') . ".";
|
$obj->roll_str = "Bad roll, The correct syntax is: '/roll+XdY' where X is max of " . self::settings('max_rolls'). "& Y is max of " . self::settings('max_faces') . ".";
|
||||||
|
|
Loading…
Reference in New Issue