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 error [test1]: wrong # args: need help!

Old posts that have not been replied to for several years.
Locked
D
Drewbu

Tcl error [test1]: wrong # args: need help!

Post by Drewbu »

Hi i made a script to send a post request ... and it did work ... but after some time i start to get Tcl error [test1]: wrong # args: should be "join nick uhand handle chan input"
here si code .. plese help me

Code: Select all

package require http

bind pub - !test test1
proc test1 {nick uhand handle chan input} {
    putlog "post requested"
   set data test
    set url "http://url"
set query [http::formatQuery "body" $data] 
http::config -useragent "User-Agent: Mozilla/4.0 (compatible; Eggdrop 1.6)"
  set token [http::geturl $url -query $query]
upvar #0 $token state

array set meta $state(meta)

putserv "PRIVMSG $chan :$meta(Location)"
http::cleanup $token
}
Locked