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.

http

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

http

Post by caesar »

Code: Select all

package require http 2.4

bind pub - !bla my:bla

proc my:bla {nick uhost hand chan text} {
set tok [::http::geturl "http://someserver/" -timeout 120]
set var [::http::code $tok]
catch {::http::cleanup $tok}
putserv "PRIVMSG $chan :$var"
}
Just ignore the code, I want to wask something about it. When I start it all seems ok. After I'll .rehash it it dies with:
(21:34:07) ::: <bot> [21:39] invalid command name "tclPkgUnknown"
(21:34:07) ::: <bot> while executing
(21:34:07) ::: <bot> "tclPkgUnknown http 2.4"
What I did wrong there?
Once the game is over, the king and the pawn go back in the same box.
Locked