You can trivially add other things like an OPER cmd as well. the TIMER just adds a one second delay before joining the channels.
ON *:CONNECT: {
if ($network == SurrealChat.net) {
NS IDENTIFY nick pass
.TIMER 1 1 JOIN #chan1,#chan2
}
}