For a server specific on connect event:
on *:connect:{
if ($server == irc.dal.net) {
; code
}
elseif ($server == irc.rizon.net) {
; code
}
}
Note that you can use wildcards like: if (*dal* iswm $server) { .. }
Also note that when you connect to a network, say DALnet, the server might vary, so doing a check with $network might be better, like:
on *:connect:{
if ($network == dalnet) {
; code
}
elseif ($network == rizon) {
; code
}
}