summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorSpencer Rinehart <anubis@overthemonkey.com>2009-02-23 08:45:37 -0500
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-23 21:01:40 +0100
commitec25dc6ce941dc9d6cafe197464e390d0844d492 (patch)
tree26080af4cae5e9c78f16e1d317302c0881f34e1e /data/rbot/plugins
parent27353b5177b4c4ea50b8b8c6617cd350519308f5 (diff)
url: Only reply with disabled host message when url info directly requested.
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/url.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index 8d12f303..e380f29b 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -71,7 +71,7 @@ class UrlPlugin < Plugin
checks.flatten!
unless checks.grep(@no_info_hosts).empty?
- return "Sorry, info retrieval for #{url.host} (#{checks.first}) is disabled"
+ return ( opts[:always_reply] ? "Sorry, info retrieval for #{url.host} (#{checks.first}) is disabled" : false )
end
logopts = opts.dup
@@ -147,6 +147,7 @@ class UrlPlugin < Plugin
reply = nil
begin
title = get_title_for_url(urlstr,
+ :always_reply => m.address?,
:nick => m.source.nick,
:channel => m.channel,
:ircline => m.message)