a few minutes of searching the archives didn't reveal any simple and elegant way to determine if a user has registered their nickname with NickServ. I'd like to be able to check if a nick is registered to avoid having ChanServ reject an attempt to add the nick to the auto-operators list.

The NickServ used by my target network typically responds to an INFO request for a registered nickname with the following notice:

Time registered: Jun 13 06:33:39 2005 PDT

while an unregistered nickname gets the following notice:

Nick <nickname> isn't registered.


So, obviously one could send NickServ the INFO message for the target nickname, then parse the responses looking for the keywords "Time registered" and "isn't registered" but I'm hoping for a more elegant method.

Any suggestions?

thanks,

Richard