From 9aee35a777ae9ee1720e79410d26f81b76c8b8ab Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Sat, 16 Nov 2013 17:30:47 +0100 Subject: [PATCH] =?UTF-8?q?Nouvel=20alias=20pour=20la=20commande=20=C2=AB?= =?UTF-8?q?=20ajoute=20:=C2=A0lien=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/commands/edit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/edit.pm b/lib/commands/edit.pm index 99c58f5..de4c6a4 100644 --- a/lib/commands/edit.pm +++ b/lib/commands/edit.pm @@ -18,7 +18,7 @@ sub exec { $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; - if ($command eq "lien") { + if ($command eq "lien" or $command eq "url") { if ($arg !~ /^$RE{URI}{HTTP}{-scheme => qr(https?)}$/) { $irc->yield(privmsg => $chan => "Ce n'est pas une url valide"); } -- GitLab