more dick checking

This commit is contained in:
Chris Sexton 2013-01-22 15:09:02 -05:00
parent a887d0bba9
commit ce94b0b258
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (p *DicePlugin) Message(message bot.Message) bool {
if len(dice) == 2 {
// We actually have a die roll.
nDice, err := strconv.Atoi(dice[0])
if err != nil || nDice < 1 {
if err != nil || nDice < 1 || nDice > 20 {
p.Bot.SendMessage(channel, "You're a dick.")
return true
}