node-irc icon indicating copy to clipboard operation
node-irc copied to clipboard

I can connect to channels only on connect

Open enriquemorenotent opened this issue 7 years ago • 1 comments

If I connect and set automatically join channels:

let client = new irc.Client("someserver", "somenick", { channels: ["#somechannel"]})

...it works great, but if I do this:

let client = new irc.Client("someserver", "somenick", {})
client.join("#somechannel")

I get the following error:

"Error: {"prefix":"verne.freenode.net","server":"verne.freenode.net","command":"err_notregistered","rawCommand":"451","commandType":"error","args":["*","You have not registered"]}

What is different on both operations?

enriquemorenotent avatar Jul 05 '18 18:07 enriquemorenotent

As the errror states (err_notregistered), you need to wait for the registered event before joining the channel(s).

Booster2ooo avatar Aug 16 '19 10:08 Booster2ooo