diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-11-23 12:50:14 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-11-23 12:50:14 +0000 |
commit | 2ea2d5814982a9b54e224ca2414b4fdb0ba0c5cc (patch) | |
tree | 4ded5e93806b1b4aeb104f66475984ba6015f5d4 /data | |
parent | ba0a7761f4aa50deccadac1cebfe3dce18ec3b17 (diff) |
* (plugins/karma) don't thank for bot karma decrements
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/karma.rb | 4 |
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 |