Put this into your remotes section of your scripts editor:

Code:
On *:CONNECT: {
  If ($Server == irc.domain.com) { join #foo,#bar }
}


- Relinsquish