Yes, i was looking in tcl archive, no echo script there can do what i want, yet i think it should not be any problem for script coders to implement this feature so im writting here again..
set chan1 "#channel1"
set chan2 "#channel2"
bind pubm - *word1* my:echo
bind pubm - *word2* my:echo
proc my:echo {n u h c t} {
global chan1 chan2
set chan1 [string tolower $chan1]
set c [string tolower $c]
if {$c == $chan1} {
puthelp "PRIVMSG $chan2 :\<$n@$c\> $t"
}
}
you can add as many binds as you need to the same proc
set chan1 "#channel1"
set chan2 "#channel2"
set wordlist "*word1* *word2*"
foreach word $wordlist {
bind pubm - "% $word" my:echo
}
proc my:echo {n u h c t} {
global chan1 chan2
set chan1 [string tolower $chan1]
set c [string tolower $c]
if {$c == $chan1} {
puthelp "PRIVMSG $chan2 :\<$n@$c\> $t"
}
}
if you have "bind pubm - * my:echo" it will relay everything, post the script as you have it if it does not work correctly