Oh, didn't even see that :#

on *:connect: {
nickserv auth dallas
.timer 0 200 .ctcp $me ping
}
is the correct remote.
If you have tried
/raw nickserv auth dallas
in the status window while connected and it does auth ok, you can use
raw -q nickserv auth dallas
as second line in your script.
(If you give me the network you're connecting to, I could check if this way works or not)