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.

TCL Script Help Please.. Small Problem.

Old posts that have not been replied to for several years.
Locked
E
Eliminator

TCL Script Help Please.. Small Problem.

Post by Eliminator »

Can someone tell me whats wrong with this peice of Code:

set token [http::geturl lightning-bolt.kicks-ass.net]
set html [http::data $token]
foreach line $html {
putserv "PRIVMSG $nick :$line"
}
return
}
-----------------------------------------------------------------------
I get this error: [ 19:47:57 ] <Lightning-Bolt> [19:46] Tcl error [pub_parsecmd]: list element in quotes followed by ">" instead of space

? btw that url addy above is only temp testing.. for now..


anyhow any help on why I cant get that to work would be great...

I need this code so I can set up a update checker on my website for my script.. something like that.. anyhow thanks in advanced..


Mike.
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

$html is not a list. If you want it to become a list of lines, do a

Code: Select all

[split $html \n]
Locked