Skip to content

Commit

Permalink
whatever i changed
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchy- committed Jun 9, 2015
1 parent cdd5f30 commit da1c2d9
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions scripts/title.php
Expand Up @@ -86,22 +86,20 @@
$breakcode="return (strlen(\$response)>=2000000);";
$response=wget($host,$uri,$port,ICEWEASEL_UA,$rd_extra_headers,20,$breakcode,256);
$html=strip_headers($response);
if ($alias=="~sizeof")
$content_length=strlen($html);
if ($content_length>(1024*1024))
{
if ($content_length>(1024*1024))
{
privmsg(chr(3)."13".(round($content_length/1024/1024,3))." Mb (downloaded)");
}
elseif ($content_length>1024)
{
privmsg(chr(3)."13".(round($content_length/1024,3))." kb (downloaded)");
}
else
{
privmsg(chr(3)."13".$content_length." bytes (downloaded)");
}
return;
privmsg(chr(3)."13".(round($content_length/1024/1024,3))." Mb (downloaded)");
}
elseif ($content_length>1024)
{
privmsg(chr(3)."13".(round($content_length/1024,3))." kb (downloaded)");
}
else
{
privmsg(chr(3)."13".$content_length." bytes (downloaded)");
}
return;
}
elseif ($alias=="~title")
{
Expand Down

0 comments on commit da1c2d9

Please sign in to comment.