on *:TEXT:!socktest:#:{ /sockopen msforum mircscripts.org 80
on *:sockopen:msforum:{
sockwrite -n $sockname GET /forumlist.php HTTP/1.0
; 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 (Stats: * posts / * threads / * users
iswm %temptext) || (Last 24 hours: * posts / * new users
iswm %temptext) {
echo -a -
echo -a $htmlfree(%temptext)
}
}
}