Skip to content

Commit

Permalink
whatever i changed
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchy committed Oct 10, 2015
1 parent 50c4f8d commit e7a03f4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/jisho2.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@

for ($i=0;$i<min(3,count($results["data"]));$i++)
{
if ($results["data"][$i]["is_common"]==False)
{
continue;
}
$out="";
for ($j=0;$j<count($results["data"][$i]["japanese"]);$j++)
{
Expand All @@ -48,7 +44,7 @@
}
if (count($results["data"][$i]["japanese"])>1)
{
$out=$out."(".($j+1).") ";
$out=$out."[".($j+1)."] ";
}
$out=$out.$results["data"][$i]["japanese"][$j]["word"]." (".$results["data"][$i]["japanese"][$j]["reading"].")";
}
Expand Down Expand Up @@ -95,4 +91,6 @@
privmsg(count($results["data"])." results");
}

privmsg("http://jisho.org/search/".$trailing);

?>

0 comments on commit e7a03f4

Please sign in to comment.