return;
}
- use WWW::Shorten::SnipURL;
- my $short = makeashorterlink( $what );
- if( !$short ) {
- use WWW::Shorten::TinyURL;
- }
- $short = makeashorterlink( $what );
- if( !$short ) {
- $short = $what;
+ if( $what =~ /^https?:\/\/(snipurl|tinyurl)\.com\/.*/i ) {
+ $short = $what;
+ } else {
+ use WWW::Shorten::SnipURL;
+ my $short = makeashorterlink( $what );
+ if( !$short ) {
+ use WWW::Shorten::TinyURL;
+ }
+ $short = makeashorterlink( $what );
+ if( !$short ) {
+ $short = $what;
+ }
}
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;