Declare $short outside the if statement..
authorpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 2 Dec 2008 22:14:54 +0000 (22:14 +0000)
committerpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 2 Dec 2008 22:14:54 +0000 (22:14 +0000)
git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@81 088b83a4-0077-4247-935c-42ec02c2848b

commands.yaml

index 1418e86..231cc03 100644 (file)
@@ -1730,11 +1730,12 @@ TITLE: |-
       return;
     }
   
+    my $short;
     if( $what =~ /^https?:\/\/(snipurl|tinyurl)\.com\/.*/i ) {
       $short = $what;
     } else {
       use WWW::Shorten::SnipURL;
-      my $short = makeashorterlink( $what );
+      $short = makeashorterlink( $what );
       if( !$short ) {
         use WWW::Shorten::TinyURL;
       }