From 212494d2f51eeba24f0cbb54c0a657872a127e08 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Thu, 5 Feb 2015 17:10:09 +0100
Subject: [PATCH] $lastID must die

---
 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 e57318d..11be3d9 100644
--- a/lib/commands/parser.pm
+++ b/lib/commands/parser.pm
@@ -117,7 +117,8 @@ sub tag {
     my ($msg, $chan) = @_;
     my @tags = ($msg =~ /#([a-zA-Z0-9_-]+)/g);
 
-    commands::tag::exec($lastID->{$chan->[0]}, "@tags");
+    my $id = utils::id::get($chan->[0]);
+    commands::tag::exec($id, "@tags");
 }
 
 1;
-- 
GitLab