summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-11-23 12:50:14 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-11-23 12:50:14 +0000
commit2ea2d5814982a9b54e224ca2414b4fdb0ba0c5cc (patch)
tree4ded5e93806b1b4aeb104f66475984ba6015f5d4
parentba0a7761f4aa50deccadac1cebfe3dce18ec3b17 (diff)
* (plugins/karma) don't thank for bot karma decrements
-rw-r--r--data/rbot/plugins/karma.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/karma.rb b/data/rbot/plugins/karma.rb
index eecfbe26..60b1dcf8 100644
--- a/data/rbot/plugins/karma.rb
+++ b/data/rbot/plugins/karma.rb
@@ -71,7 +71,7 @@ class KarmaPlugin < Plugin
if (tok =~ /^(?:--)(.*[^-].*)$/) || (tok =~ /^(.*[^-].*)(?:--)$/)
op, arg = '--', $1
next
- elsif (tok =~ /^(?:\+\+)(.*[^+].*)$/) || (tok =~ /^(.*[^+].*)(?:\+\+)$/)
+ elsif (tok =~ /^(?:\+\+)(.*[^+].*)$/)||(tok =~ /^(.*[^+].*)(?:\+\+)$/)
op, arg = '++', $1
next
end
@@ -94,7 +94,7 @@ class KarmaPlugin < Plugin
ac.each do |k, v|
next if v == 0
@registry[k] += (v > 0 ? 1 : -1)
- m.reply @bot.lang.get("thanks") if k == @bot.nick
+ m.reply @bot.lang.get("thanks") if k == @bot.nick && v > 0
end
end
end