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

option -all for !get

parent 241901d4
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -16,8 +16,9 @@ sub exec { ...@@ -16,8 +16,9 @@ sub exec {
my @tags = ($msg =~ /#?([a-zA-Z0-9_-]+)/g); my @tags = ($msg =~ /#?([a-zA-Z0-9_-]+)/g);
my $content; my $content;
# if we are in a query, we search in all the channels # if we are in a query or arg -all, we search in all the channels
my $all = ($chan->[0] !~ /^#/) ? 1 : 0; my $all = 0;
$all = 1 if ($chan->[0] !~ /^#/ || $chan->[0] =~ s/-all//);
if (@tags) { if (@tags) {
my $params = join ', ' => ('?') x @tags; my $params = join ', ' => ('?') x @tags;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter