The nick changing part is working great. After some reading in the mirc's help file and looking at the code I am understanding whats happening a lot better.
if $me != MyNick { .nick $v2 }
if i'm not equal to MyNick /nick MyNick. Where $v2 is the second part of $me != MyNick
on *:notice:*is registered and protected*:{
if ($nick == nickserv) { .msg $v2 identify abc123 }
on notice from nickserv with the statement *is registered and protected* /msg nickserv identify password. Where * are wild cards for the beginning and ending of the message
This part of the code is not working nor is the rest for obvious reasons; this part is broke. When I change my nick I get 2 notices:
-NickServ- This nickname is registered and protected. If it is your nickname, type /msg NickServ IDENTIFY password. Otherwise, please choose a different nickname.
-NickServ- If you do not change your nickname within one minute, it will be changed automatically.
The way the script is written I don't see why 2 notices should really matter as the script is just waiting for the first notice to proceed to the next command of identifying.
Hopefully I don't sound like an idiot. Any ideas? Thanks!