Basically what I want to do when joining a certain server change my nick for that server, identify myself, join a channel, and set channel modes

something like

on *:connect:irc.testserver.net /nick testnick /msg NickServ IDENTIFY password /join #testchannel /mode +abc

I looked through mirc's help file but I am not able to put these commands together in a script and have them work properly. Any help is appreciated.