diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-28 22:24:57 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-28 22:24:57 +0000 |
commit | 4d55698eb0e3295404394884b3d44094e61eae27 (patch) | |
tree | 02600e937b3c935940a98890ebca5a00d562fb3b /data | |
parent | e2bad2a87f98ee801498bd8879570c13be072f6c (diff) |
karma plugin: skip messages which don't have ++ or -- in them
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/karma.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/karma.rb b/data/rbot/plugins/karma.rb index 60b1dcf8..2bd5f9f7 100644 --- a/data/rbot/plugins/karma.rb +++ b/data/rbot/plugins/karma.rb @@ -60,7 +60,7 @@ class KarmaPlugin < Plugin end def listen(m) - return unless m.kind_of?(PrivMessage) && m.public? + return unless m.kind_of?(PrivMessage) && m.public? && m.message.match(/\+\+|--/) arg = nil op = nil ac = Hash.new |