Okay, my friend asked me to help him with a website socket problem, which I did for the most part, but now we're having problems returning the last peice of data. (BannedMACs[3].)
(I edited some of the code, since that's what I do most of the time. - Original
here if you're interested.)
on *:sockopen:rebsite:{
sockwrite -nt $sockname GET /*removed*.txt HTTP/1.1
sockwrite -nt $sockname Host: rebellion.net.au $+ $str($crlf,2)
}
on *:sockread:rebsite:{
var %x = $null
sockread %x
if (!$sockerr) {
if (BannedMACs[*]=* iswm %x) { echo $active $v2 }
}
}
alias riscban { sockopen rebsite rebellion.net.au 80 }
Any ideas?