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

Specify channel key validation (MODE +k). #111

Merged
merged 4 commits into from
Sep 5, 2021

Conversation

progval
Copy link
Member

@progval progval commented Aug 10, 2021

Tested with Insp, Unreal, Ergo, Hybrid/Chary/Solanum, and ircu2;
using a passphrase with a space (which is forbidden by RFC2812),
very long passphrases, and empty passphrase.

They all either let it through, or return one of the two numerics.

  • ERR_INVALIDKEY: ircu2 (or ERR_NEEDMOREPARAMS, for empty keys)
  • ERR_INVALIDMODEPARAM: insp, ergo
  • truncating: irc2, unreal
  • stripping: hybrid family (including solanum)
  • silently dropping: bahamut

(reopened from GH-107 because I accidentally merged it)

progval added a commit to progval/unrealircd that referenced this pull request Aug 10, 2021
This is more user-friendly (prevents setting a different key than
what the other requested) and makes the behavior consistent with
InspIRCd and Ergo (and hopefully others soon).

ircdocs/modern-irc#111
progval added a commit to progval/solanum that referenced this pull request Aug 10, 2021
…rs or truncating

This is more user-friendly (prevents setting a different key than
what the other requested) and makes the behavior consistent with
InspIRCd and Ergo (and hopefully others soon).

ircdocs/modern-irc#111
@progval progval added the feedback wanted We need to make sure this is correct label Aug 10, 2021
Copy link
Member

@DanielOaks DanielOaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, good rundown of this behaviour!

_includes/modern-appendix.md Show resolved Hide resolved
Tested with Insp, Unreal, Ergo, Hybrid/Chary/Solanum, and ircu2;
using a passphrase with a space (which is forbidden by RFC2812).

They all either let it through, or return one of the two numerics.
To make sure readers don't confuse them.
* ERR_INVALIDKEY: ircu
* ERR_INVALIDMODEPARAM: insp, ergo
* truncating: irc2, unreal
* stripping: hybrid family (including solanum
* silently dropping: bahamut
@progval progval merged commit b341d84 into ircdocs:gh-pages Sep 5, 2021
@progval progval deleted the channel-key-validation branch September 5, 2021 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted We need to make sure this is correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants