summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/points.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/points.rb b/data/rbot/plugins/points.rb
index 0209fabe..34af9b50 100644
--- a/data/rbot/plugins/points.rb
+++ b/data/rbot/plugins/points.rb
@@ -112,6 +112,7 @@ class PointsPlugin < Plugin
next if v == 0 or /--|\+\+/.match(k)
# strip invisible formatting characters like bold or color codes
k = k.gsub(FormattingRx, '')
+ next if k.downcase == m.sourcenick.downcase
@registry[k] += (v > 0 ? 1 : -1)
m.reply @bot.lang.get("thanks") if k == @bot.nick && v > 0
m.reply "#{k} now has #{@registry[k]} points!"