Looks like the interface to UrbanDictionary changed at some point.
authorpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Wed, 12 Sep 2007 14:26:27 +0000 (14:26 +0000)
committerpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Wed, 12 Sep 2007 14:26:27 +0000 (14:26 +0000)
git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@24 088b83a4-0077-4247-935c-42ec02c2848b

commands.yaml

index fd52a91..05fb878 100644 (file)
@@ -383,9 +383,9 @@ DICT: |-
        return;
       } else {
        my $hits = $search->approximate_result_count();
-        print( "DICT: Backend reports $hits hit".($hits==1:""?"s"), "\n" );
+        print( "DICT: Backend reports $hits hit".($hits==1?"":"s"), "\n" );
       }
-      my $response = $result->{ 'word' }.": ".$result->{ 'description' };
+      my $response = $result->{ 'word' }.": ".$result->{ 'definition' };
       $response =~ s/\n/ /g;
       print( "DICT: Fetched result\n" );
       $heap->{ 'DICT_cache' }->{ 'URBAN' }->{ "$num.$what" } = $response;