ircanywhere / irc-factory

A rebuilt irc-factory from simple-irc-socket and irc-message. Get support at #ircanywhere on freenode
https://ircanywhere.com
MIT License
60 stars 14 forks source link

Connecting with a used nick auto-renames #33

Open silverbucket opened 8 years ago

silverbucket commented 8 years ago

Hi, I'm wondering about a certain behavior, and whether it's from the IRC server or irc-factory library.

When I connect to IRC normally (freenode), NickServ will message me if the username is already in use or needs to be identified with a password. The renaming process is usually nick+_ if I don't authenticate or rename within a grace period.

When I connect to freenode using the irc-factory library, I'll automatically be renamed to nick+1. But I don't see any message from NickServ at all. I don't know whether the renaming is in the library or not, nor do I have any way to detect whether the rename is due to the nick being used or whether I need to authenticate or not.

Any idea how I can handle this? And if there is some special behind the scenes magic between freenode + the IRC client (irssi in this case) that we need to mimic in our irc-factory app?

Thanks for any help!

silverbucket commented 8 years ago

ping @rickihastings any word on this?

raucao commented 8 years ago

+1 for solving this. :)

rickihastings commented 8 years ago

Sorry for the late reply. Off the top of my head I believe the nick is forcibly changed, the server issues a NICK newnick command to you via nickserv, which will likely be nick + 1 or something. You should update your nickname record when you get a NICK command from the server. If that makes sense?