From e86faadc75eeb624ee8b898f78e47a05ef28b6ca Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Mon, 25 Nov 2013 21:02:58 +0100 Subject: [PATCH] "link" is an alias for "url" and "lien" --- 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 de4c6a4..22e8729 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" or $command eq "url") { + if ($command eq "lien" or $command eq "url" or $command eq "link") { if ($arg !~ /^$RE{URI}{HTTP}{-scheme => qr(https?)}$/) { $irc->yield(privmsg => $chan => "Ce n'est pas une url valide"); } -- GitLab