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.
Old posts that have not been replied to for several years.
-
multikon
- Voice
- Posts: 22
- Joined: Sat Jun 19, 2004 10:28 pm
Post
by multikon »
Code: Select all
set url "http://my-page.net/latest.shtml"
if {![info exists egghttp(version)]} {
putlog "egghttp.tcl wurde nicht einwandfrei geladen"
putlog "egghttp_latest.tcl wurde nicht geladen"
} else {
proc your_callbackproc {sock} {
global url
set headers [egghttp:headers $sock]
set body [egghttp:data $sock]
regsub -all "\n" $body "" body
regsub -all -nocase {<br>} $body "<br>\n" body
regexp {<b>(.*)</b>} $body
putlog "'$url'$served"
}
bind pub f|f !testlatest show_latest
proc show_latest { hand idx text } {
global url
set sock [egghttp:geturl $url your_callbackproc]
return 1
}
putlog "egghttp_latest.tcl loaded."
}
Don`t work ...
The errormessage is:
Tcl error [show_latest]: wrong # args: should be "show_latest hand idx text"
Please help me, to fix them

[/b][/code]
-
Alchera
- Revered One
- Posts: 3344
- Joined: Mon Aug 11, 2003 12:42 pm
- Location: Ballarat Victoria, Australia
-
Contact:
Post
by Alchera »
Change this:
Code: Select all
proc show_latest { hand idx text } {
To this:
Code: Select all
proc show_latest {nick uhost hand chan text} {
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
-
multikon
- Voice
- Posts: 22
- Joined: Sat Jun 19, 2004 10:28 pm
Post
by multikon »
Hi
Thx for reply ...
Tcl have now no error, but the script have no effect ?!