1.4 , it will apear soon on egghelp.I added more commands, but still the
script is in romanian, but if i have time i will translate it. If you have problems with the script, or find any bugs just post here the problem


Code: Select all
proc pub:add {nick host hand chan arg} {
global botnick user
set level [lindex $arg 0]
set args [lrange $arg 1 end]
Code: Select all
<speechles> .tcl set test "{joe}"
<bot> Tcl: {joe}
<speechles> .tcl set c [lindex $test 0]
<bot> Tcl: joe
<speechles> .tcl set test "{joe"
<bot> Tcl: {joe
<speechles> .tcl set c [lindex $test 0]
<bot> Tcl error: unmatched open brace in list
<speechles> .tcl set test "{joe}away"
<bot> Tcl: {joe}away
<speechles> .tcl set c [lindex $test 0]
<bot> Tcl error: list element in braces followed by "away" instead of space
Code: Select all
set level [lindex [split $arg] 0]
set args [lrange [split $arg] 1 end]