From 41fb41eda06de80d835e5d5c3e67d9071b9f735f Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Tue, 1 Feb 2011 20:22:18 -0700 Subject: [PATCH] Remove this check as it prevents from Bit.ly Pro Custom URLs. --- modules/Bitly.pm | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/Bitly.pm b/modules/Bitly.pm index d417508..67a3e0a 100644 --- a/modules/Bitly.pm +++ b/modules/Bitly.pm @@ -71,14 +71,8 @@ sub shorten # If successful, decode the content. my $d = $response->decoded_content; chomp $d; - if ($d =~ m/bit.ly/i) { - # And send to channel. - privmsg($data{svr}, $data{chan}, "URL: ".$d); - } - else { - # Otherwise, send an error message. - privmsg($data{svr}, $data{chan}, "An error occurred while shortening your URL."); - } + # And send to channel. + privmsg($data{svr}, $data{chan}, "URL: ".$d); } else { # Otherwise, send an error message. @@ -110,7 +104,7 @@ sub reverse my $d = $response->decoded_content; chomp $d; # And send it to channel. - privmsg($data{svr}, $data{chan}, "URL: ".$d); + privmsg($data{svr}, $data{chan}, "URL: ".$d); } else { # Otherwise, send an error message.