summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-04-11 10:57:25 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-04-11 11:42:20 +0200
commit9a7ca431a4354ac6d61b6fdea6d43c75a6ec98e7 (patch)
tree9fca409e477f5d6f58f68d8d8092faa3b54e04a3
parent3f4e7549e87e73c1630870ba99a0294594c321c6 (diff)
karma: prevent users from changing own karma
-rw-r--r--data/rbot/plugins/karma.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/karma.rb b/data/rbot/plugins/karma.rb
index 060e743e..93d21189 100644
--- a/data/rbot/plugins/karma.rb
+++ b/data/rbot/plugins/karma.rb
@@ -87,7 +87,7 @@ class KarmaPlugin < Plugin
if op && arg
ac[arg] ||= 0
- ac[arg] += (op == '--' ? -1 : 1)
+ ac[arg] += (op == '--' ? -1 : 1) unless arg.downcase == m.sourcenick.downcase
op = arg = nil
end
end