From 511f5a01871107563fbeb93903abb2f8c6442d4e Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@gmail.com>
Date: Tue, 1 Jan 2013 23:39:56 +0100
Subject: [PATCH] =?UTF-8?q?Message=20avec=20les=20informations=20suite=20?=
 =?UTF-8?q?=C3=A0=20un=20lien?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/playbot.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/playbot.rb b/lib/playbot.rb
index e67661a..98f5e4d 100644
--- a/lib/playbot.rb
+++ b/lib/playbot.rb
@@ -38,7 +38,7 @@ class PlayBot < IRCBot
 			@nick_paswd = options.delete[:nick_passwd]
 		end
 
-		options[:username] = BOTNAME
+        options[:username] = BOTNAME
 		options[:realname] = BOTNAME
 
         super(options)
@@ -73,7 +73,6 @@ class PlayBot < IRCBot
         return if event.pm?
 
         url = URI.extract(event.message, ['http', 'https']).first
-        puts "url = #{url}"
         
         handler = SitePlugin.for_site(url)
         return if handler.nil?
@@ -81,6 +80,7 @@ class PlayBot < IRCBot
         handler = handler.new
         content = handler.get(url)
 
-        #TODO: use this content...
+        msg(event.channel, "#{content[:title]} | #{content[:author]}")
+        end
     end
 end
-- 
GitLab