eqrunner commented on a Page, Weather script for mIRC  -  Feb 15, 2012

@ Bladerunner
Change the following section of code. (The 'Command Prep.' Section, located between lines 126 thru 150)

    ;---Command Prep. Checks command to see which data file it will be pulling from depending on command entered ---
  set %wu_address $replace(%wu_location,$chr(32),$chr(43)) 

 ;It now changes not only !w, but also !weather to respond as a !current command
  if (%wu_command == !w) || (%wu_command == !weather) set %wu_command !current
  if (%wu_command == !current) || (%wu_command == !time) { 
    set %wu_link $+(/auto/wui/geo/WXCurrentObXML/index.xml?query=,%wu_address)
    set %wu_host api.wunderground.com
    sockopen wunderground %wu_host 80
  }
  if (%wu_command == !forecast) || (%wu_command == !forecast5) { 
    set %wu_link $+(/auto/wui/geo/ForecastXML/index.xml?query=,%wu_address)
    set %wu_host www.wunderground.com
    sockopen wunderground %wu_host 80

  }
  if (%wu_command == !alert) set %wu_command !alerts
  if (%wu_command == !alertsinfo) set %wu_command !alertinfo
  if (%wu_command == !alerts) || (%wu_command == !alertinfo) { 
    set %wu_link $+(/auto/wui/geo/AlertsXML/index.xml?query=,%wu_address)
    set %wu_host www.wunderground.com
    sockopen wunderground %wu_host 80
  }

  ;echo -s LINK: %wu_link
}
 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.