sub {
my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
my( $service, $url ) = split( / /, $what, 2 );
- if( ! length $url ) {
+ if( !defined( $service ) ) {
+ $kernel->post( $src, $replypath, "USAGE: SHORTEN [<service>] <URL>, where <service> is one of (potentially) BabyURL, Linkz, MakeAShorterLink, Metamark, NotLong, OneShortLink, Shorl, SnipURL*, TinyClick, TinyLink, or TinyURL. (* designates the default service.) Many of these do not work.", $dest );
+ return;
+ }
+ if( !defined( $url ) ) {
$url = $service;
$service = "SnipURL";
}