From ec25dc6ce941dc9d6cafe197464e390d0844d492 Mon Sep 17 00:00:00 2001 From: Spencer Rinehart Date: Mon, 23 Feb 2009 08:45:37 -0500 Subject: url: Only reply with disabled host message when url info directly requested. --- data/rbot/plugins/url.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot') 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) -- cgit v1.2.3