Code:
on *:TEXT:!joinxd*:#:{ 
  if ((%floodjoinxd) || ($($+(%,floodjoinxd.,$nick),2))) { return }
  set -u10 %floodjoinxd On
  set -u30 %floodjoinxd. $+ $nick On
  /j $nick
  msg $chan I joined your channel $nick
}


That works but the next time I quit mIRC and then starts it hasnt saved the channels that it joined is there a way for it to auto reconnect previously joined channels?

Thanks.