Ooops..sorry..if you change the writeini line to
Code:
 .writeini -n Auto-Join.ini $network $gettok($1-,%a,32) $gettok($1-,%a,32)
 

It should work. Sorry, I missed that last parameter in the copy/paste