From 15c0b674d60d719c19f4ebeefca33664d03d16ad Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 8 Apr 2007 15:28:46 +0000 Subject: url plugin: show value of content-encoding if present --- data/rbot/plugins/url.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index d1c9b6bb..a1a325eb 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -67,6 +67,11 @@ class UrlPlugin < Plugin end debug response.to_hash.inspect + + enc = response['content-encoding'] + + extra << ", #{Bold}encoding#{Bold}: #{enc}" if enc + unless @bot.config['url.titles_only'] # content doesn't have title, just display info. size = response['content-length'].gsub(/(\d)(?=\d{3}+(?:\.|$))(\d{3}\..*)?/,'\1,\2') rescue nil -- cgit v1.2.3