coldfusion explains most every thing in his post but as most people know by now that there are many ways to code the same thing but in this case with a few diffences, as the code that will follow. This might give a little better example of how to make it function more securly and in my opinion a bit better by intagrating more network sevices
for example dreamnet dosnt have nickserv they have Nicksys
useing the statment if (Nick* iswm $nick) should solve this.
also i think its wise to check whom your sending your passwords to, the code below also does this by checkin if the network is the same as the wildsite requesting your indent. and last but not least we all know there are many lamers out there that try to get your passes, so you might try useing raw commands to send your pass dirctly to the server /!raw message.
these are just a few ideas on how to get your auto-ident scripts to be a bit more secure an network friendly.
note: this code work with all the networks i have tryed including the larger ones like dal down to the smaller networks
but still its ment to be an example and i hope it helps
;-----------------------------------------------
on *:NOTICE:*:?:{
if (Nick* iswm $nick) {
var %nwork = $remove($network,$chr(46)) | var %wsite = $remove($wildsite,$chr(46))
if ((%nickpass != $null) && (* $+ %nwork $+ * iswm %wsite) && (This nickname is registered and protected* iswm $1-)) { !raw $nick identify %nickpass }
if ((%nickpass != $null) && (* $+ %nwork $+ * iswm %wsite) && (This nick is owned by someone else* iswm $1-)) { !raw $nick identify %nickpass }
if (%nopass == nope) { halt }
if (!%nickpass) { set -u5 %nopass nope | echo 04 -a - Error No Pass to Send | echo 04 -a to set one now type type: /nickpass | return }
}
alias nickpass {
set %nickpass $$?="No PassWord Found For Nickserv $crlf $+ Enter Your PassWord For Auto Ident"
if (%nickpass) { !raw nickserv identify %nickpass }
}
;-------------------------------------------


This Isnt Your Moms Site! :P