diff --git a/PlayBot/commands/parser.pm b/PlayBot/commands/parser.pm index 5793e38df8ce2c18e9442297c671c5f97e154285..c953c660effe9e408a5b1b733a25d8064fe3880d 100644 --- a/PlayBot/commands/parser.pm +++ b/PlayBot/commands/parser.pm @@ -147,10 +147,10 @@ sub exec { } sub tag { - my ($msg, $chan) = @_; + my ($msg, $chan, $id) = @_; my @tags = ($msg =~ /(?:^| )(#[a-zA-Z0-9_]+)/g); - my $id = PlayBot::utils::id::get($chan); + $id = PlayBot::utils::id::get($chan) if (not defined($id)); PlayBot::commands::tag::exec($id, "@tags"); return @tags;