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

can't join channel until fully connected (sasl)

Open ralyodio opened this issue 3 years ago • 3 comments

Is there an event I can listen to like irc.on('connected', ...) ??

ralyodio avatar Dec 14 '22 09:12 ralyodio

How about 'registered'?

https://github.com/kiwiirc/irc-framework/blob/a2697c944efce407a6fd85b876f83907362eead4/examples/bot.js#L51-L53

dgw avatar Dec 14 '22 09:12 dgw

onregistered is when you register a name i think. you only do that once.

ralyodio avatar Dec 20 '22 16:12 ralyodio

The example for 'registered' literally logs "Connected!" and then joins a channel.

A 'registered' event is emitted when irc-framework receives RPL_WELCOME, i.e. the client has finished connecting to the network. Read more about "connection registration" here.

dgw avatar Dec 20 '22 16:12 dgw