From a44f8d9833a7cf4ee7b541e9bb3b02c186b81ad0 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Wed, 9 Oct 2013 13:31:42 +0200 Subject: [PATCH] We don't insert anymore tags in sites::parser. --- PlayBot.pl | 7 ++++++- lib/sites/parser.pm | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/PlayBot.pl b/PlayBot.pl index f92f718..b2b8329 100755 --- a/PlayBot.pl +++ b/PlayBot.pl @@ -284,7 +284,12 @@ sub on_speak my $id = sites::parser::parse(@args); # 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); + } } } diff --git a/lib/sites/parser.pm b/lib/sites/parser.pm index 2e4329f..654429b 100644 --- a/lib/sites/parser.pm +++ b/lib/sites/parser.pm @@ -102,9 +102,6 @@ sub parse { $sth->execute($id, $chan->[0]) or $log->error("Couldn't finish transaction: " . $dbh->errstr); - # we insert the potiential tags - commands::parser::tag($msg, $chan); - if (defined $content{'context'}) { commands::tag::addContext($id, $content{'context'}); } -- GitLab