Code:
On *:Connect: {
  if ($network == Hellfireirc.net) { do stuff }
  if ($network == GameSurge) { do stuff }
}