]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/url.rb
use pretty printing with Logger (debug, info, warning and error messages)
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / url.rb
index d1c9b6bb5804a7de7df2c9616ae22a3dcada7bef..a1a325eb3d5f9bdfbc60f0e5ef368bd2687194b4 100644 (file)
@@ -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