All pastes #167914 Raw Edit

Perrin_Aybara

public text v1 · immutable
·published 2006-09-12 14:33 UTC
rendered paste body
on *:sockopen:membercount:{ 
  sockwrite -n $sockname GET /forum/index.php HTTP/1.1 

  ; This is telling the socket to connect to the specific page, using "GET".
  sockwrite -n $sockname Host: tbrh.org $+ $crlf $+ $crlf

  ; This states the host once again.

}

on *:sockread:membercount:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {

    var %memcount

    sockread %membercount
    if (In total there * online iswm %membercount) {

      echo -a -

      echo -a %membercount

    }
  }
}









on *:sockopen:msforum:{ 
  sockwrite -n $sockname GET /forumlist.php HTTP/1.1 

  ; This is telling the socket to connect to the specific page, using "GET".
  sockwrite -n $sockname Host: mircscripts.org $+ $crlf $+ $crlf

  ; This states the host once again.

}

on *:sockread:msforum:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {

    var %temptext

    sockread %temptext
    if (<td class="siteHeader" align="right"> iswm %temptext) || (<td class="siteHeader" align="right"> iswm %temptext) {

      echo -a -

      msg #tbrh %temptext

    }
  }
}