summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2006-07-31 13:41:12 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2006-07-31 13:41:12 +0000
commit1668bbbd17eb9939b741432743347d9c3af0c6c8 (patch)
tree52e146584f736c10c3b09b745f49b238a1ac71d8
parent02cc5b84c790595dda468e03a361b9e6f3429fce (diff)
minor "cuteness" tweak for the karma plugin.
-rw-r--r--data/rbot/plugins/karma.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/rbot/plugins/karma.rb b/data/rbot/plugins/karma.rb
index 93cf659b..166a9df4 100644
--- a/data/rbot/plugins/karma.rb
+++ b/data/rbot/plugins/karma.rb
@@ -72,6 +72,9 @@ class KarmaPlugin < Plugin
next if(key == m.sourcenick)
if(change == "++")
@registry[key] += 1
+ if key =~ /^#{@bot.nick}$/i
+ @bot.say m.replyto, @bot.lang.get("thanks")
+ end
elsif(change == "--")
@registry[key] -= 1
end