I do not see any obstacles for this. The password may be sent and received using any symbols, available in the encoding used by your network, services and the client.

For example:
Code
on *:NOTICE:*nick* is registered*:*:{
  if (YourNetwork isin $network && $nick == NickServ) { 
    .msg NickServ IDENTIFY pass$word
  }
}


But nevertheless, if in some way there are obstacles for this, then you can try using a temporary variable "%my_pass" to save there the password, where this the symbol will be: $ = $chr(36)

In the script code it will look like this:
Code
on *:NOTICE:*nick* is registered*:*:{
  if (YourNetwork isin $network && $nick == NickServ) { 
    var %my_pass = $+(pass,$chr(36),word)
    .msg NickServ IDENTIFY %my_pass
  }
}


Don't forget to change "YourNetwork" to the name of your network. Try this method, perhaps this will help you solve your problem.

P.S. I tested this even using as a password Japanese characters in unicode.



🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples