From a3cf806450893638f98096ab96c4c25023bb01c3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 26 Mar 2007 09:50:14 +0000 Subject: url plugins: when echoing first par, be more clear on what's being done and don't spam with overlong messages --- data/rbot/plugins/url.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 67fdc5c8..23a32638 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -59,7 +59,7 @@ class UrlPlugin < Plugin if @bot.config['url.first_par'] partial = response.partial_body(@bot.config['http.info_bytes']) first_par = Utils.ircify_first_html_par(partial) - extra << "\n#{LINK_INFO} #{first_par}" unless first_par.empty? + extra << "\n#{LINK_INFO} text: #{first_par}" unless first_par.empty? title = get_title_from_html(partial) if title return "title: #{title}#{extra}" @@ -112,7 +112,7 @@ class UrlPlugin < Plugin begin title = get_title_for_url urlstr if title - m.reply "#{LINK_INFO} #{title}" + m.reply "#{LINK_INFO} #{title}", :overlong => :truncate debug "Title found!" else debug "Title not found!" -- cgit v1.2.3