From f0e1b62fc86bb1035ee047629471a58c6dba7077 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Wed, 17 Apr 2013 13:36:51 +0200 Subject: [PATCH] =?UTF-8?q?correction=20insertion=20vid=C3=A9o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il fallait déférencer le chan --- PlayBot.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayBot.pl b/PlayBot.pl index 56a78b3..e38bfd8 100755 --- a/PlayBot.pl +++ b/PlayBot.pl @@ -332,7 +332,7 @@ sub on_speak my $sth = $dbh->prepare_cached('INSERT INTO playbot (date, type, url, sender_irc, sender, title, chan) VALUES (NOW(),?,?,?,?,?,?)'); $log->error("Couldn't prepare querie; aborting") unless (defined $sth); - $sth->execute($site, $content{'url'}, $nick, $content{'author'}, $content{'title'}, $chan) + $sth->execute($site, $content{'url'}, $nick, $content{'author'}, $content{'title'}, $chan->[0]) or $log->error("Couldn't finish transaction: " . $dbh->errstr); } -- GitLab