Skip to content
Extraits de code Groupes Projets
Valider b7e6b14b rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

do not print url when adding a content

parent 94f3eb52
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -79,10 +79,6 @@ sub parse { ...@@ -79,10 +79,6 @@ sub parse {
$id = $sth->fetch->[0]; $id = $sth->fetch->[0];
} }
# message sur irc
$content{'id'} = $id,
$irc->yield(privmsg => $chan => utils::print::print(\%content));
# insertion du chan # insertion du chan
my $sth = $dbh->prepare_cached(' my $sth = $dbh->prepare_cached('
INSERT INTO playbot_chan (content, chan, sender_irc) INSERT INTO playbot_chan (content, chan, sender_irc)
...@@ -91,6 +87,11 @@ sub parse { ...@@ -91,6 +87,11 @@ sub parse {
$sth->execute($id, $chan->[0], $nick) $sth->execute($id, $chan->[0], $nick)
or $log->error("Couldn't finish transaction: " . $dbh->errstr); or $log->error("Couldn't finish transaction: " . $dbh->errstr);
# message sur irc
$content{'id'} = $id;
delete $content{'url'};
$irc->yield(privmsg => $chan => utils::print::print(\%content));
} }
return $id; return $id;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter