]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/dice.rb
chucknorris: read gzip stream before passing it to YAML.load
[user/henk/code/ruby/rbot.git] / 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