summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-26 09:50:14 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-03-26 09:50:14 +0000
commita3cf806450893638f98096ab96c4c25023bb01c3 (patch)
tree51c8e44d9e24b1b78613cacaaab80991a7ce3d5b /data/rbot
parentd393443de7dd737c245ce97aeac2761e1982fa48 (diff)
url plugins: when echoing first par, be more clear on what's being done and don't spam with overlong messages
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/url.rb4
1 files changed, 2 insertions, 2 deletions
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!"