]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
dice: restore + killed by ec5745fa7abd47b8ca12bd783b0759079dff9917
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 3 Nov 2009 19:41:18 +0000 (20:41 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 3 Nov 2009 19:41:18 +0000 (20:41 +0100)
data/rbot/plugins/dice.rb

index 5de1af8e76220cedfa08caae3b7a19ce8cbdb430..7e0662b1d0f42a3dd5f96660fa51d6eec543f4ee 100644 (file)
@@ -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