diff options
author | Adam James <atj@pulsewidth.org.uk> | 2008-04-06 14:56:33 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-06 16:58:28 +0200 |
commit | 1e841175468b3e0357ab278a226a237fe4d7687e (patch) | |
tree | f786a605105e58798e7844b8ef6def5ef85e7c18 /data/rbot | |
parent | b23ff8826ff593bb5f0d0f62739b3fc924c55f67 (diff) |
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d05 ...
plugins/keywords: add method that was missing from commit 7cac523563de6473d2f93fd2d053446cde701db1
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/keywords.rb | 5 |
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 |