OK - part 1.
change
putserv "AWAY [lindex $areas [rand [llength $reas]]]"
to
putserv "AWAY [lindex $areas [rand [llength $areas]]]"
You will see 2 lines the same in the script, change both.
As for the connect-server script not working, add a putlog line in the script, see it that proves the script is being called.
Some IRC server set you as returned upon the first receiveing the first non-automated command fromt he client. A auto-mated command is classed as somthing that should be returned automaticaly byt he client, like a ping. This maybe causing the problems.
If the putlog line is displayed, then yes, this is the problem.