summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-16 00:14:23 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-16 00:14:23 +0000
commitdbb8a509f170a4b43f9db9755eb0f503d1b34f25 (patch)
tree6058ea155277ba5724c01b5d0b803d38dd507cb4 /data/rbot/plugins
parentd84c8bae9caef54dfd7d799836a03938939ea59b (diff)
keywords plugin: more fixes to 'reply-on-question' code
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/keywords.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index 855bfe6a..255d7fe6 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -490,11 +490,9 @@ class Keywords < Plugin
end
def unreplied(m)
- # return if m.address?
- # in channel message, not to me
# TODO option to do if(m.message =~ /^(.*)$/, ie try any line as a
# keyword lookup.
- if !@bot.config["keyword.address"] && m.message =~ /^(.*\S)\s*\?\s*$/
+ if m.message =~ /^(.*\S)\s*\?\s*$/ and (m.address? or not @bot.config["keyword.address"])
keyword_lookup m, $1, true if @bot.auth.allow?("keyword", m.source)
elsif @bot.config["keyword.listen"] && (m.message =~ /^(.*?)\s+(is|are)\s+(.*)$/)
# TODO MUCH more selective on what's allowed here