What should be in there is the network name, which needs to be extracted from an $identifier\

Network = GetIdentifier("$network", ServerNumber)

I added it right after the ONJOIN call.No idea if it will make it work, but its certainly a start, because w/o it, it will surely NOT work, as "len(hosts)" will always equal 0, so the if statement fails.