diff --git a/PlayBot.pl b/PlayBot.pl index 56a78b38336c8ed305c5c313dbdc03925a79aecf..e38bfd89be432eaa543d61775f17c87955aaa076 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); }