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.

Babel

Old posts that have not been replied to for several years.
Locked
d
darth_unslut

Babel

Post by darth_unslut »

I get this error using !trans in Babel.tcl

Tcl error [clara_translate]: invalid command name "egghttp:geturl"


Code: Select all

proc clara_translate {nick uhost handle chan arg} {
 global babel
 if {$babel(restrict)==1 && [string match "*-babel*" [channel info $chan]]} { return 0 }
 set babel(translatechan) $chan
 set arg [join [lrange [split $arg] 0 end]]
 putcmdlog "$nick@$chan translate $arg"
 set langtype [lindex $arg 0]
 set text [join [lrange $arg 1 end]]
 regsub -all " " $text "%20" text
 set url "$babel(url1)$langtype$babel(url2)$text"
 putloglev 3 * "URL: $url"
 set sock [egghttp:geturl $url translate_callback]
}
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Tcl comes with a package (budled utility script) called http.

This is used to talk with HTTP servers, and download URL content.

egghttp, is the same thing, but is designed more for eggdrop.

You will need to download and install this script yourself. From what I understand, it is available in the Tcl archive on egghelp.org.

On top, please read the top's of scripts, as they usualy include very helpful information on there requirments. THese are most likely to have included information about this.
d
darth_unslut

Post by darth_unslut »

Ow tnx alot m8 lol. 1st time i got a problem in years wif my scripts lol

########################################################
# Script by MORA@EFNet (#egghelp #egghjelp.no) - mora@ready.dk
# This script requires egghttp.tcl which can be downloaded from www.tclscript.com
# Version : 3.0
########################################################


next time i'll start reading the top again Ty
Locked