From ce94b0b258a8ce77fef45b1cc36a5d2932407583 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 22 Jan 2013 15:09:02 -0500 Subject: [PATCH] more dick checking --- plugins/dice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dice.go b/plugins/dice.go index b8d1108..675c650 100644 --- a/plugins/dice.go +++ b/plugins/dice.go @@ -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 }