I've been learning TCL for a few times, but not as much as i can complete my first little tcl of my own.
Aim is simple: when a *text* is typed in a chan, eggdrop has to report it, as it is, in another chan.
What i did so far is this:
Code: Select all
bind pub - * procedura
proc procedura {nick host handle chan text} {
set comando [lindex [split $text " "] 0]
set comando2 [lindex [split $text " "] 0]
if {($comando == "TEST") && ($nick == "mynick") && ($chan == "#mychan")} {
set $comando2 == $text
putquick "privmsg #otherchan: $comando2 $nick $text test123"
return 0
}
Thanks in advance.