ability to not send nick in the login process
ArsenArsen opened this issue · comments
hey!
I wrote some custom handlers for handling NICK
messages and it's related errors, but the internal conflict handlers interfere (resulting in silly things like the name being reset back), and due to the nature of this handler, there is state involved with figuring out a nick conflict (specifically, a number is incremented), meaning it cannot be easily translated to HandleNickCollide
.
for this reason I propose that NICK initialnick
optionally removed from the initial setup process, letting the user do it after a CONNECTED
event, but still keep the internal nick tracking
Registration is done here:
Lines 310 to 336 in 771323f
Specifically, NICK
has to be provided during the registration process (before CONNECTED
, capability negotiation, etc) otherwise servers will disconnect with invalid registration.
Furthermore, as seen here, the order is:
The recommended order of commands during registration is as follows:
- CAP LS 302
- PASS
- NICK and USER
- Capability Negotiation
- SASL (if negotiated)
- CAP END
147f0ff adds support for disabling my nickname collision logic, though.