on *:text:!sabdetails*:*: {
%un = $2
sockopen bot 192.168.1.2 6080
}
;on *:sockopen:bot: {
; sockwrite -n $sockname GET $+(/s3h/getdetails.php?name=,%un)
; sockwrite -n $sockname Host: $+(192.168.1.2,$crlf,$crlf)
;}
alias bot sockopen bot 192.168.1.2 6080
on *:sockopen:bot: {
sockwrite -n bot GET http://192.168.1.2:6080/s3h/getdetails.php?name=rshield
}
on 1:sockread:bot: {
if ($sockerr > 0) return
:nextread
sockread %bot
if ($sockbr == 0) return
if (%bot == $null) %bot = -
echo -a %bot
goto nextread
}