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

We don't insert anymore tags in sites::parser.

parent a849ec19
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -284,7 +284,12 @@ sub on_speak ...@@ -284,7 +284,12 @@ sub on_speak
my $id = sites::parser::parse(@args); my $id = sites::parser::parse(@args);
# if there is a new content, there is a new id to save # if there is a new content, there is a new id to save
$lastID{$chan->[0]} = $id if ($id); if ($id) {
$lastID{$chan->[0]} = $id;
# we insert the potiential tags
commands::parser::tag($msg, $chan);
}
} }
} }
......
...@@ -102,9 +102,6 @@ sub parse { ...@@ -102,9 +102,6 @@ sub parse {
$sth->execute($id, $chan->[0]) $sth->execute($id, $chan->[0])
or $log->error("Couldn't finish transaction: " . $dbh->errstr); or $log->error("Couldn't finish transaction: " . $dbh->errstr);
# we insert the potiential tags
commands::parser::tag($msg, $chan);
if (defined $content{'context'}) { if (defined $content{'context'}) {
commands::tag::addContext($id, $content{'context'}); commands::tag::addContext($id, $content{'context'});
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter