]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d05 ...
authorAdam James <atj@pulsewidth.org.uk>
Sun, 6 Apr 2008 13:56:33 +0000 (14:56 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 6 Apr 2008 14:58:28 +0000 (16:58 +0200)
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d053446cde701db1

data/rbot/plugins/keywords.rb

index 446a1062bd4651f170acc3bcddf8298dc20190a6..97fe4258e862d86b8001a0fa3d413df596deb212 100644 (file)
@@ -261,6 +261,11 @@ class Keywords < Plugin
     return false
   end
 
     return false
   end
 
+  # is +word+ a passively ignored keyword?
+  def ignored_word?(word)
+    @bot.config["keyword.ignore_words"].include?(word)
+  end
+
   # m::     PrivMessage containing message info
   # key::   key being queried
   # quiet:: optional, if false, complain if +key+ is not found
   # m::     PrivMessage containing message info
   # key::   key being queried
   # quiet:: optional, if false, complain if +key+ is not found