how about 2 hash tables
one for server
example: Servers irc.icq.com irc.icq.com
one for your channels
example: AutoJoin $network channels
then when your on said network it will autojoin said channels
on *:start: {
if (!$hget(AutoJoin)) { hmake AutoJoin 20 }
if ($exists(AutoJoin.hsh)) { hload AutoJoin AutoJoin.hsh }
if (!$hget(Servers)) { hmake Servers 20 }
if ($exists(Servers.hsh)) { hload Servers Servers.hsh }
set -u5 %a 1
set -u5 %b $hget(Servers,0).item
while %a <= %b {
if (%a == 1) { server $hget(Servers,%a).item | inc %a }
else { server -m $hget(Servers,%a).item | inc %a }
}
else { haltdef }
}
on *:connect: { join $hget(Autojoin,$network) }
i come across the same problems with my bot