on *:connect:{ if ($network == network1) { join #chan1,#chan2,#etc } elseif ($network == network2) { join #chan1,#chan2,#etc } }