var %n = network network1 networkN ,%c = #chan1 #chan2 #chanN,%a = 1,%b = 1
while ($scon(%a).network != $null) {
if ($istok(%n,$v1,32)) {
while %b <= $gettok(%c,0,32) {
{
scon %a msg $gettok(%c,%b,32) Text To Send Here
inc %b
}
}
inc %a
}
A little improvement.
I noted there were no '='s for the vars, something usually leading to 'set' type variables being created instead of 'var' ones...afair, any way.
This snippet will send the text to any channels you tell it to, on any network you tell it to.
You add a network/channel by replacing those
Network1 and the like, in the first line.
Obviously, you can add more of both, you're not limited to the number of words we've left there to be replaced.
Good luck,
ziv.