-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection Registration Question: intended behavior when client sends pass between NICK / USER combo #240
Comments
That wording is inherited from RFC 2812 and seems slightly confused. Clients sending |
@SadieCat thanks! |
I'm happy to make this a separate issue if necessary, but I have another question related to clarifying intended behavior of the server during the registration process. The PASS message section says:
The USER message section does not specify what the server should do when the user sends multiple USER messages before registration is complete. Should the server discard the values sent with the first USER message in favor of the values sent in the second? |
I think it's fair to leave this as an implementation choice |
@progval Thanks! |
The server should probably handle this because the server may respond with an error if the information in the first request isn't valid (e.g. |
@SadieCat It makes sense to me that the server should handle the case where the client sends USER twice if the first message resulted in an |
I appreciate the two of you for sating my curiosity so far. I've got another one: is there a "too many arguments" version of ERR_NEEDMOREPARAMS? The behavior I have noticed in other IRC servers is to discard "extra" parameters but not to inform the client. |
That's correct, extra arguments are always ignored by existing implementations, as far as I know. But also not a requirement for new implementations. |
@progval thanks. Checking my understanding: If I were to notify the user about the dropped params, I think what I might do is send a It looks like there is only 1
and the client would display it appropriately. Is my understanding correct? |
That's correct, just make sure to check for the capability first. |
@progval Thanks! |
Thank you so much for this valuable resource.
The docs state:
What should servers do if they receive a NICK then a PASS before receiving the USER? Technically, the registration is not complete, and the NICK / USER combination have not yet been received. Has the client technically sent the PASS command before sending the NICK / USER combo?
The text was updated successfully, but these errors were encountered: