From 1e841175468b3e0357ab278a226a237fe4d7687e Mon Sep 17 00:00:00 2001 From: Adam James Date: Sun, 6 Apr 2008 14:56:33 +0100 Subject: plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d05 ... plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d053446cde701db1 --- data/rbot/plugins/keywords.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/rbot') 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 -- cgit v1.2.3