What you can do here is directly bind to the raw number as you have done, 432 if its correct or string match the $arg or $text var.
This is the raw and not 'Server say nick is invalid.' You will need to match for the following text:
The nick asskicker is currently being held by a Services Enforcer. If you are the nicks owner, use /msg
NickServ@services.dal.net RELEASE asskicker password to release the nickname. If the nickname recently expired, please wait patiently and try again later. [asskicker]
Code: Select all
bind raw - 432 nickserv:release
proc nickserv:release {from keyword arg} {
global botnick nickpass nick altnick
putquick "NICK $altnick" -next
#putquick "NICK $nick[rand 10][rand 10]" #for alternative nick
puthelp "PRIVMSG NickServ@services.dal.net :RELEASE $nick $nickpass"
return 0
}
or
bind raw - * nickserv:release
proc nickserv:release {from keyword arg} {
global botnick nickpass nick altnick
if {([string match "*The nick * is currently being held by a Services Enforcer. If you are the nicks owner*" $arg])} {
putquick "NICK $altnick" -next
#putquick "NICK $nick[rand 10][rand 10]" #for alternative nick
puthelp "PRIVMSG NickServ@services.dal.net :RELEASE $nick $nickpass"
return 0
}
}
Note: I used puthelp for the delay in releasing the nick after you are connected and putquick -next for the nick change when you are connecting, which might solve it, if possible.
The thing is, mostly it doesn't let you kill the enforcer or release the nick when it gives you the raw message. You have to switch to an alternative nick, then bind init-server or something then go ahead and release that nick after you have connected to the server, not while you are connecting to it or when it is giving you that error message.
You cannot release the nick enforcer when it gives you that error message, and that is really crappy I say, the coders should atleast let people release it when they get the error while connecting.
The thing is that you are not fully connected to the client server, hence you cannot message nickserv to release your nick while you get that message. Untill you are fully connected then only you can.