Thank you Russel for your help. Also thank you for your help in my other thread, it is greatly appreciated.
Ok, i edited where i saw things needed to be edited, A lot of the code was beyond my level, so i was a bit confused and most likely screwed it up, which is why it isn't working for me. Here is the complete script i have: please let me know where i went wrong.
on *:join:#: {
if ($nick == $me) {
/hadd auto-join $chan $serverip
}
}
on *:start:{
if !$hget(auto-join) { .hmake auto-join 100 }
if $exists(auto-join.hsh) { .hload auto-join auto-join.hsh }
var %a = 1, %b = $hget(auto-join,0).item
while %a <= %b {
.scon -at1 check_network $!serverip %a
inc %a
}
}
alias -l check_network {
if $1 == $hget(auto-join,$2).data {
.join $hget(auto-join,$2).item
}
}
on *:exit: {
/hsave -o auto-join auto-join.hsh
}