if ($read(channels.txt,s,$chan)) { action }
on master:text:!setchan *:#: if ($2 ischan) { write channels.txt $2- }