Need help (or explanation) for this please.

Code:
on me:*:JOIN:#: {
  if ($chan == #channel1) { run an alias }  [color:red]alias works from command line [/color] 
  if ($chan == #channel2) { run another alias } [color:red] also works from command line [/color] 
  if ($chan == #channel3) { mode # +isnt }  [color:red] this works [/color] 
}
 


This will not trigger the aliases when I join, but it will set the mode of the third channel. Why? Is is my code, or something with mIRC?


I refuse to engage in a battle of wits with an unarmed person. wink