From cc241a9709593491b6a67810ed8a5a5054e19208 Mon Sep 17 00:00:00 2001 From: Matthias Hecker Date: Mon, 13 Apr 2020 20:48:40 +0200 Subject: plugin(points): forgot one special case, see #34 Tokens that include itself ++/-- are now ignored as well. --- data/rbot/plugins/points.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/points.rb b/data/rbot/plugins/points.rb index 976594ee..2f67092f 100644 --- a/data/rbot/plugins/points.rb +++ b/data/rbot/plugins/points.rb @@ -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:]]/ -- cgit v1.2.3