Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change nick at runtime? #149

Closed
RyanCopley opened this issue Feb 20, 2013 · 5 comments
Closed

Change nick at runtime? #149

RyanCopley opened this issue Feb 20, 2013 · 5 comments

Comments

@RyanCopley
Copy link

Other than disconnecting, is there a way to change the users nick in real time? I am not seeing anything in the documentation for it.

@quentinxs
Copy link
Contributor

IRC nicknames are set upon connection and can be changed using the IRC
NICK command.

On Wed, Feb 20, 2013 at 1:50 AM, Ryan Copley notifications@github.comwrote:

Other than disconnecting, is there a way to change the users nick in real
time? I am not seeing anything in the documentation for it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/149.

@butterscotchstallion
Copy link

Can anyone elaborate on this? I don't see a command in the library to change nicks, nor do I see a "raw" command so that I could send the protocol string.

If it's not an existing feature, are there plans for it? Existing issue?

@butterscotchstallion
Copy link

OK - I found it. It's listed in the documentation that raw commands can be sent to the server this way:

Client.send(command, arg1, arg2, ...)
Sends a raw message to the server; generally speaking, it’s best not to use this method unless you know what you’re doing. Instead, use one of the methods below.

@qq99
Copy link
Contributor

qq99 commented May 26, 2014

I've been using client.send("NICK", "mynick") and it seems to work well enough. Sometimes if I try to do this too soon after the client initially connects, the userlist doesn't seem to be sent across for the channel...

@qq99
Copy link
Contributor

qq99 commented May 26, 2014

So, here's the thing!

You'll want to wait on seeing rpl_channelmodeis (check message.command using ircClient.addListener('raw', function(command) { ... })

If you send NICK before then, it seems like the userlist and topic never come through

I'm creating a promise when creating the client, and only resolving it at this point (which signals my ready state)

@osslate osslate closed this as completed May 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants