on *:TEXT:*:#firstchannel:{ if $network == firstnetwork { scid -at1 relay # $replace($1-,|,-,%,-,$,-) } } alias -l relay { if $network == secondnetwork && $me ison #secondchannel { msg #secondchannel ( $1 ) $2- } }