ON $*:TEXT:/^[@!.]weather/Si:#: { Set %postcode1 $2 set %postcode2 $3 set %output $iif($left($1,1) == @, msg $chan, notice $nick) sockopen weather3 uk.weather.com 80 } ON *:SOCKOPEN:weather3: { sockwrite -nt $sockname GET /weather/local/ $+ %postcode1 $+ ?x=12&where2= $+ %postcode2 HTTP/1.1 sockwrite -nt $sockname Host: uk.weather.com sockwrite -nt $sockname $crlf } ON *:SOCKREAD:weather3: { var %read sockread %read if () } if () sockclose $sockname } } ON *:SOCKCLOSE:weather3: { %output [WEATHER] Location: %name $chr(124) Temp: %deg $+ °C unset %postcode1 unset %postcode2 unset %output unset %name unset %deg }