From e0c376e7657f21c7326ec47219a2a2c6689b159b Mon Sep 17 00:00:00 2001 From: pdbogen Date: Wed, 12 Sep 2007 14:26:27 +0000 Subject: [PATCH] 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 --- commands.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0