Well instead of using $chan == %c1, do something like
if ($istok($chan,%c1,32))
and have %c1 be like:
#channel1 #channel2 #channel3
And for the second question,
echo -a automatically uses $active so there really is no reason to change that. However to echo to a channelname just do
.echo #thechannel thetext