Skip to content
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

reevaluate error responses for SANICK #1277

Closed
slingamn opened this issue Sep 22, 2020 · 5 comments
Closed

reevaluate error responses for SANICK #1277

slingamn opened this issue Sep 22, 2020 · 5 comments

Comments

@slingamn
Copy link
Member

@eskimo reported client issues with SANICK. Part of the problem is that SANICK sends 433 ERR_NICKNAMEINUSE to the originating client (as opposed to the target) on failures; these were then being misinterpreted by the client, causing the client to change its own nickname.

Let's see what other SVSNICK/SANICK implementations are doing here.

@jwheare
Copy link

jwheare commented Sep 22, 2020

We use ERR_NICKNAMEINUSE to prompt the client to choose a different nick for themselves, which we then submit as NICK, so yes this is incorrect behaviour. You shouldn't send this to either the target or originating client.

@slingamn
Copy link
Member Author

Any suggestions on what we should send?

@slingamn slingamn added this to the v2.4 milestone Sep 22, 2020
@slingamn slingamn added the bug label Sep 22, 2020
@jwheare
Copy link

jwheare commented Sep 22, 2020

SANICK is non-standard, maybe send a NOTICE if you want to send something. Or a FAIL SANICK...

@jwheare
Copy link

jwheare commented Sep 22, 2020

As long as you're not too bothered with back-compat.

slingamn added a commit to slingamn/ergo that referenced this issue Sep 22, 2020
@eskimo
Copy link

eskimo commented Sep 22, 2020

Looks like I can't reply to the thread on the inspircd repo, but I don't see a problem with sending the messages as you suggested @slingamn. Most clients throw messages they don't know into the status window and most users know to look at the status window for something they didn't see a response for. However, a NOTICE is probably a better option since most clients will show them either in the channel the user is currently viewing rather than having someone hunt it down and eventually find it in a status window.

slingamn added a commit to slingamn/ergo that referenced this issue Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants