From: pdbogen Date: Wed, 12 Sep 2007 14:26:27 +0000 (+0000) Subject: Looks like the interface to UrbanDictionary changed at some point. X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=e0c376e7657f21c7326ec47219a2a2c6689b159b;p=destult.git Looks like the interface to UrbanDictionary changed at some point. git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@24 088b83a4-0077-4247-935c-42ec02c2848b --- diff --git a/commands.yaml b/commands.yaml index fd52a91..05fb878 100644 --- a/commands.yaml +++ b/commands.yaml @@ -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;