]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/points.rb
plugin(points): forgot one special case, see #34
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / points.rb
index 976594ee59e8cdcef9b950e0b3e2b7828b4aa1b9..2f67092f6bf5f07191a252e9fdf3d8856b0a05d7 100644 (file)
@@ -85,6 +85,9 @@ class PointsPlugin < Plugin
       token = $1  # strip ++/-- from token
       flag = $2  # remember ++/--
 
+      # token must not have more than one ++/--
+      next if token.match(/(\+\+|--)/)
+
       # each token must include at least one alphanumerical character
       next unless token.match /[[:alnum:]]/