You assume you only read one line since thats all you see however when you open a socket connection you send and recieve page headers as well.

Example:
Quote:

HTTP/1.1 200 OK
Date: Sat, 06 May 2006 17:27:53 GMT
Server: Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
X-Powered-By: PHP/4.4.1
Transfer-Encoding: chunked
Content-Type: text/html
62
Poul 05/05/06 [13:58] <Phoenix> ok so i just had to fart...but now back to sleeping! not waking!

This is infact all the data you will recieve.

Also another thing i should note is that though it may seem easier to remove markup in your html for parsing the opposite is true markup lets you pinpoint information fast and discard bad data easy. One of the reasons XML is so popular.

also the code has some hooks i commented in between //'s
Code:
on *:text:!Quotes:*:/showquote
alias showquote set %chan1 # | sockopen q www.sith-net.com 80

On *:sockopen:q:{
  if $sockerr {
    echo -s - Error: couldn't contact website1.
    return
  }
  var %s = sockwrite -tn q
  %s GET /f4c/Quotes.php  HTTP/1.0
  %s Host: http://www.sith-net.com
  %s
  //change the above 3 lines to://
  %s GET /f4c/Quotes.php  HTTP/1.1
  %s Host: sith-net.com $+ $crlf $+ $crlf
  //this will send the correct page headers//
}
On *:sockread:q:{
  var %s
  sockread %s

  msg %chan1 13,1 %s
  msg %chan1 9,1For More Quotes Be Sure To Visit www.Free4Canada.ca/MyQuotes.php
//Place this in the sockclose event as you want to show this AFTER you recieved the page//
  sockclose q 
//you close it here right after you recieve the first line while in fact you want to keep on reading so lose this//
}
}
On *:sockclose:q:{
echo -s - Error: couldn't fetch quote2. 
//sockclose doesnt have to mean an error occured//
}


Right now to discard the headers we have to do alot of if's or a pretty long regex in the parsing. if formatted your line as <quote> quote goes here </quote> all it takes is one simple if statement.


$maybe