Skip to content
Browse files

Should have at least one number for diceroll, WHOOPS

  • Loading branch information...
1 parent 76fcd2b commit fd380dbab3051e2986bede1ea8867189c5b05b88 @LindseyB LindseyB committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 XOmBot.pl
View
2 XOmBot.pl
@@ -117,7 +117,7 @@ sub said {
}
# dice roll
- if($body =~ m/^\!d(\d*)/){
+ if($body =~ m/^\!d(\d+)/){
$self->say(channel => $channel, body => int(rand($1)) + 1);
}

0 comments on commit fd380db

Please sign in to comment.
Something went wrong with that request. Please try again.