I notice that you have several /scon.. commands in the script. I don't know if it's applicable, but you should read
this post (again). Since the script uses $3, it may be possible to exploit the code.
As for your questions..
It should be easy enough to make a dialog come up if the network requires registration but no nick/pass is present. Something like:
on *:TEXT/NOTICE:<nick service asks for password>:?:{
if (!$hget(passwords,$network)) dialog -m info info
else msg $nick $hget(passwords,$network)
}
-genius_at_work