How can you tell it skips the reading?
Did you echo it?
Code:
on *:sockread:doublecheck: { 
  var %y 
  sockread %y

  if %y { echo -a %y }

  if (*application error* iswm %y) {
    set %doublecheck down
  }
}

try do /doublecheck in your editbox to see if it works. dont trigger it via command .ttr-site because your whole script is not well written.