for a smaller code you can also use
on 1:JOIN:#: { if ($chan == #ChannelNameHere ) { mode #ChannelNameHere +v $nick } }