summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-03 23:47:12 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-03 23:47:12 +0000
commit1fc83a678829711a5ec49b23c4459ce7761149b0 (patch)
tree327e1844bd3335c62aacca7033be58a8d44d4305
parentdd8b11c9a65996d62cf6ec15963e99ad6b65b0cc (diff)
salut plugin: only reply to salutations in unreplied messages
-rw-r--r--data/rbot/plugins/salut.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb
index 2948b2f3..abcb1744 100644
--- a/data/rbot/plugins/salut.rb
+++ b/data/rbot/plugins/salut.rb
@@ -91,7 +91,7 @@ class SalutPlugin < Plugin
@match_langs.uniq!
end
- def listen(m)
+ def unreplied(m)
return if @match.empty?
return unless m.kind_of?(PrivMessage)
return if m.address? and m.plugin == 'config'