mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Improve dice roll syntax
This commit is contained in:
parent
3b8974544e
commit
51cc028920
@ -18,7 +18,7 @@ if($rolls =~ s/\s*-show\s*//) {
|
||||
$show = 1;
|
||||
}
|
||||
|
||||
if($rolls =~ m/^\s*(\d+)d\d+(?:\+\d+)?\s*$/) {
|
||||
if($rolls =~ m/^\s*(\d+)d\d+(?:\+?-?\d+)?\s*$/) {
|
||||
if($1 > 100) {
|
||||
print "Sorry, maximum of 100 rolls.\n";
|
||||
die;
|
||||
|
Loading…
Reference in New Issue
Block a user