summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam James <atj@pulsewidth.org.uk>2008-04-06 14:56:33 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-06 16:58:28 +0200
commit1e841175468b3e0357ab278a226a237fe4d7687e (patch)
treef786a605105e58798e7844b8ef6def5ef85e7c18
parentb23ff8826ff593bb5f0d0f62739b3fc924c55f67 (diff)
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d05 ...
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d053446cde701db1
-rw-r--r--data/rbot/plugins/keywords.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index 446a1062..97fe4258 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -261,6 +261,11 @@ class Keywords < Plugin
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