When you modify the line 745, you must keep this before the second catch statement:
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
If not you never set the wzsock var to anything and thus it returns that (my best guess at what is going wrong in pub_wz). Let me know if this doesn't work. Accordingly, here is the full snippit of code:
Code: Select all
## Open socket to www.wunderground.com and read in webpage...use async for faster
## response.
if {[catch {set wzsock [socket -async www.wunderground.com 80]} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
if {[catch {
puts $wzsock "GET $webpage HTTP/1.0"
puts $wzsock "Host: www.wunderground.com"
puts $wzsock "Cookie: Units=both"
puts $wzsock ""
} sockerr]} { puthelp "NOTICE $nick :$sockerr"; puthelp "NOTICE $nick :Try again later, look out the window till then!"; close $wzsock; return 0 }
flush $wzsock