X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=data%2Frbot%2Fplugins%2Fdice.rb;h=7e0662b1d0f42a3dd5f96660fa51d6eec543f4ee;hb=8b811d21babf8f9e5a10a953b595d55ebd08820d;hp=5de1af8e76220cedfa08caae3b7a19ce8cbdb430;hpb=9de0a5433e12ca59ced238c99c68efad070aa7c7;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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