You could put it into Perform, or you can include a script:
on *:connect: {
if ($network == [color:red]Network[/color]) {
[color:red]identify password[/color]
}
}
Change Network to your network name. To see what your network name is, type
//echo -a $network while connected. Replace the identify password part with whatever command is required to identify on your network.