]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
salut plugin: only reply to salutations in unreplied messages
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 3 Dec 2007 23:47:12 +0000 (23:47 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 3 Dec 2007 23:47:12 +0000 (23:47 +0000)
data/rbot/plugins/salut.rb

index 2948b2f37506a94d4caf66451cf764d1a9c63954..abcb17443b4fc7af4d9ecdf8b2d8620d22d7148f 100644 (file)
@@ -91,7 +91,7 @@ class SalutPlugin < Plugin
     @match_langs.uniq!\r
   end\r
 \r
-  def listen(m)\r
+  def unreplied(m)\r
     return if @match.empty?\r
     return unless m.kind_of?(PrivMessage)\r
     return if m.address? and m.plugin == 'config'\r