X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fpoints.rb;h=2f67092f6bf5f07191a252e9fdf3d8856b0a05d7;hb=cc241a9709593491b6a67810ed8a5a5054e19208;hp=976594ee59e8cdcef9b950e0b3e2b7828b4aa1b9;hpb=90656f4203a0a989b6fb110d4a07598dd186b84c;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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:]]/