Code:
  

on *:CONNECT:{ 
  if (.server1.net isin $server) {  
    /command1
    /join -x #channel1
  }
  if (.server2.net isin $server) {
    /command1
    /join #channel2
  }
  if (.server3.net isin $server) {
    /command1
    /join #channel3
  }
  if (.server4.net isin $server) {
    /command2
  }
  else {
    /command3
  }
}



My problem is this: it runs the /command3 on EVERY server i connect to, even the ones i have listed as server1, server2, etc.

??