Skip to content

Change nick at runtime? #149

RyanCopley opened this Issue Feb 20, 2013 · 5 comments

5 participants


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.


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?


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 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 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)

@sigkell sigkell closed this May 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.