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

PlayBot::commands::parser::tag use channel last id only if not precised

parent ed0e56ba
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -147,10 +147,10 @@ sub exec { ...@@ -147,10 +147,10 @@ sub exec {
} }
sub tag { sub tag {
my ($msg, $chan) = @_; my ($msg, $chan, $id) = @_;
my @tags = ($msg =~ /(?:^| )(#[a-zA-Z0-9_]+)/g); 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"); PlayBot::commands::tag::exec($id, "@tags");
return @tags; return @tags;
......
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