opps sorry, forgot the code:
on *:text:-weather*:#:{
notice $nick Attempting to connect to weather server.
set %whowanted $nick
set %zipcode $2
sockopen weather
http://www.weather.com 80
}
on *:sockopen:weather:{
notice %whowanted Connection to weather server established, now retriving weather data for US zip code: %zipcode
sockwrite -n $sockname GET /weather/local/ $+ %zipcode $+ ?lswe= $+ %zipcode $+ &lwsa=WeatherLocalUndeclared sockwrite -n $sockname HTTP/1.0 HTTP/1.0
sockwrite -n $sockname $crlf
echo -s system connected to weather.com!
}
on *:sockread:weather:{
if ($sockerr > 0) return
:nextread
sockread %weathertemp
if ($sockbr == 0) return
if (%weathertemp == $null) %weathertemp = -
notice %whowanted %weathertemp
goto nextread
}