Miscellany
public text v1 · immutablealias get_page { sockopen get_page 38.105.80.75 27015 }
on *:sockopen:get_page:{
if $sockerr {
return
set %status 4Offline
}
else {
set %status 3Online
}
sockwrite -n $sockname GET / HTTP/1.0
sockwrite -n $sockname $crlf
}
on *:sockread:get_page:{
if $sockerr { return }
sockread %data
while $sockbr {
echo > %data
sockread %data
}
}
ON *:TEXT:!Status:#FearS:{
msg $chan Status : %status
}