]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/karma.rb
grouphug: log errors
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / karma.rb
index 60b1dcf8a739e19c0dc8a3efebc476982775bc3c..d8d378e332c223ef54ea0997892905610ab73d15 100644 (file)
@@ -59,8 +59,8 @@ class KarmaPlugin < Plugin
     "karma module: Listens to everyone's chat. <thing>++/<thing>-- => increase/decrease karma for <thing>, karma for <thing>? => show karma for <thing>, karmastats => show stats. Karma is a community rating system - only in-channel messages can affect karma and you cannot adjust your own."
   end
 
-  def listen(m)
-    return unless m.kind_of?(PrivMessage) && m.public?
+  def message(m)
+    return unless m.public? && m.message.match(/\+\+|--/)
     arg = nil
     op = nil
     ac = Hash.new