Jethro commented on a Page, Weather Bot  -  Feb 04, 2010

You're welcome, Scakk.

This:> on $*:text:/^!w(eather)?|f(orecast)?/Si:#: {
if ($2 isnum) {
if ($istok(!w !weather,$1,32)) { set %usweatherWF W }
if ($istok(!f !forecast,$1,32)) { set %usweatherWF F }
set %usweatherzip $2 | set %usweatherchan $chan
sockopen usweather www.localweather.net 80
}
}
Can be:

on $*:text:/^!w(eather)?\s(\d+)|f(orecast)?\s(\d+)/Si:#: {
  if ($istok(!w !weather,$1,32)) { set %usweatherWF W }
  if ($istok(!f !forecast,$1,32)) { set %usweatherWF F }
  set %usweatherzip $regml(1) | set %usweatherchan $chan
  sockopen usweather www.localweather.net 80
}

which saves the if $2 isnum statement and an end bracket.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.