From 42fd85ebe21fd0fd38fa02a1acb70402187053a8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 3 Nov 2009 20:41:18 +0100 Subject: [PATCH] dice: restore + killed by ec5745fa7abd47b8ca12bd783b0759079dff9917 --- data/rbot/plugins/dice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/dice.rb b/data/rbot/plugins/dice.rb index 5de1af8e..7e0662b1 100644 --- a/data/rbot/plugins/dice.rb +++ b/data/rbot/plugins/dice.rb @@ -86,7 +86,7 @@ class DicePlugin < Plugin def privmsg(m) # If either not given parameters or given incorrect parameters, return with # the help message - unless m.params && m.params =~ /^\d*d\d+(\s*[-]\s*(\d+|\d*d\d)+)*$/ + unless m.params && m.params =~ /^\d*d\d+(\s*[+-]\s*(\d+|\d*d\d)+)*$/ m.reply "incorrect usage: " + help(m.plugin) return end -- 2.39.5