The perform on connect feature is per network, if you want to do perform some commands that is server specific then you might need to make a script like...

Code:

on *:CONNECT: {
  if ($server == server1.goes.here) {
    do some stuff here
  }
  elseif ($server == server2.goes.here) {
    do some other stuff here
  }
}