node-irc
node-irc copied to clipboard
I can connect to channels only on connect
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?
As the errror states (err_notregistered), you need to wait for the registered event before joining the channel(s).