From 7d360bcd8626c9b06af95245fe9e5e5da1f3fb62 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Thu, 15 Aug 2013 17:22:30 +0200 Subject: [PATCH] When we post a link, tags *must* start with '#' --- lib/commands/parser.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/parser.pm b/lib/commands/parser.pm index 135691b..4c599a8 100644 --- a/lib/commands/parser.pm +++ b/lib/commands/parser.pm @@ -85,8 +85,9 @@ sub exec { sub tag { my ($msg, $chan) = @_; + my @tags = ($msg =~ /#([a-zA-Z0-9_-]+)/g); - commands::tag::exec($lastID{$chan->[0]}, $msg); + commands::tag::exec($lastID{$chan->[0]}, "@tags"); } 1; -- GitLab