The script doesnt have /join command, it starts with
ON *:CONNECT: {
IF ($server == serveraddress)
VAR %x = 1
WHILE ($read(autojoin.txt, t,%x) != $null) {
VAR %chan $chr(35) $+ $read(autojoin.txt, t, %x)
.TIMER -m 1 $calc(%x * 333) JOIN %chan
INC %x
}