it can be far simpler than that, even.
You only need to do these once for your nickname:
1. /ns access add *@*
2. /alias slashnet server irc.slashnet.org 6667 your_ns_password -i your_nickname[/code]

3. Insert the following code into your remotes:
Code:
on 1:connect: {
  if ($network == [b]SlashNet[/b]) {
    join #channel1,#channel2
    mode #channel1 +abc123
  }
}


4. Type /slashnet smile

Keep in mind this may not work on some networks, but it does work on slashnet and freenode as well as most other networks that have nickserv.