This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help..

Old posts that have not been replied to for several years.
Locked
m
micky
Voice
Posts: 11
Joined: Mon Dec 13, 2004 10:07 am

Help..

Post by micky »

Someone write this in one script?

Code: Select all

proc bf_callback {sock} {
global bfNICK bfCOU
foreach line [split [egghttp:data $sock] \n] {
if {[string match "*<font  size=3 class="text3"><b>*" $line] && [string match "*$bfCOU*" $line]} {
regsub -all -- {<[^>]*>} $line "" line
putserv "NOTICE $bfNICK :Boxoffice ($bfCOU) - $line"
  }}
unset bfCOU
unset bfNICK
}

proc pub:office {nick uhst hand chan args} {
global bfNICK bfCOU
set cou [lindex $args 0]
if {$cou == ""} {
putserv "NOTICE $nick :Usage: .bf <usa|japan>"
return 0}
set url "http://www.mypage.us/boxoffice/"
set sock [egghttp:geturl $url bf_callback]
set bfNICK "$nick"
set bfCOU "$cou"
}
I dont wont use global sets (bf*). thx for help
Locked