i was trying to use the var $strip in my tcl , but the eggdrop returns that this variable doesn't is avaiable not configured yet or something like that
how i set this variable in the tcl to my eggdrop reads the lines in the chanel without any codes , color codes , bold , underline etc .....
i want that works like scripting language $strip($i)
$i is already the full line (and already configured) in the channel that my eggdrop reads , i want it striped
[15:26] Tcl error in file 'eggdrop.conf':
[15:26] can't read "text": no such variable
while executing
"ctrl:filter $text"
invoked from within
"set text [ctrl:filter $text] "
(file "scripts/aprender.tcl" line 130)
invoked from within
"source scripts/aprender.tcl
"
(file "eggdrop.conf" line 1363)
[15:26] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
thanks everybody
i tryed put the code you guys send to me every place in the tcl
and finally it worked
the bot doesnt acept color codes , bold etc , but , i have problems with case sensitive .....
how i resolve this?
bozo wrote:i have problems with case sensitive .....
how i resolve this?
Some commands have a -nocase option. (check the manual) If the command you're using doesn't have this, convert the strings to lowercase using 'string tolower'
Bugg ppslim with the ctrl:filter proc I'm using it and is working fine at me.. also, doh! I've gave you an example with the set text [ctrl:filter $text] .. don't take it *ad literam*
PS: Here is a lil test to proove that ppslim control filter thing is working fine: