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

Update irc.js for SASL auth against inspircd/anope #570

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmcparland
Copy link

As is, SASL authentication fails against InspIRCd 3.10.0 & Anope 2.0.9 (FreeBSD). Checking the arguments in the CAP message, arg 2 presents as 'sasl' without a trailing space. In this particular case, removing the space allows successful authentication. Checking that the string.startsWith('sasl') presumably handles both cases without introducing much risk. [Alternatively, we can check against both strings explicitly.]

As is, SASL authentication fails against InspIRCd 3.10.0 & Anope 2.0.9 (FreeBSD). Checking the arguments in the CAP message, arg 2 presents as 'sasl' without a trailing space. In this particular case, removing the space allows successful authentication. Checking that the string.startsWith('sasl') presumably handles both cases without introducing much risk. [Alternatively, we can check against both strings explicitly.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant