Giter VIP home page Giter VIP logo

Comments (4)

mk-fg avatar mk-fg commented on June 17, 2024

Hi,

Mostly implemented IRC based on how ERC and ZNC clients work here, checking specs where it's unclear what is happening, so definitely possible that there will be quirks.

In this case, checked specs out of curiosity, and it looks like a bug in Quassel, actually:

  • https://ircv3.net/irc/ says: The primary core IRC protocol specifications are RFC1459, RFC2812 and RFC7194.

  • https://tools.ietf.org/html/rfc1459#section-4.1 says: A "PASS" command is not required for either client or server connection to be registered, but it must precede the server message or the latter of the NICK/USER combination.

  • https://tools.ietf.org/html/rfc2812#section-3.1.1 says: The PASS command is used to set a 'connection password'. The optional password can and MUST be set before any attempt to register the connection is made. Currently this requires that user send a PASS command before sending the NICK/USER combination.

But don't think specs matter much, if they differ from de-facto behavior, especially with regards to such minor stuff, so guess I'll fix that as you suggested.

This one is more interesting:

when I use a irc server password I also have to allow 'pass' in check_access

As pretty sure PASS command is the one that shouldn't have check_access in it, as it's the one allowing access - will check too, gotta be a bug somewhere :)

from reliable-discord-client-irc-daemon.

mk-fg avatar mk-fg commented on June 17, 2024

pretty sure PASS command is the one that shouldn't have check_access in it

Oh, right, guess it's also being front-loaded before finishing capability negotiation, breaking mini-state-machine in check_access.

State machine there goes through following sequence:

  • "capability negotiation" - only cap and quit commands
  • "authentication" - cap, user, nick, pass, quit, ping
  • "normal operation" - user/pass will give "You may not reregister"

Looks like quassel is sending all auth stuff before capability negotiation phase ends, which is weird, but probably easy to support too.

from reliable-discord-client-irc-daemon.

mk-fg avatar mk-fg commented on June 17, 2024

As capability negotiation is independent from auth (and really is just a stub here), there doesn't seem to be any problem in the code to just allow both at the same time.
And it definitely should be supported according to https://ircv3.net/specs/core/capability-negotiation - Quassel doesn't do anything wrong in above debug log if PASS is disabled.

from reliable-discord-client-irc-daemon.

Zauberfisch avatar Zauberfisch commented on June 17, 2024

Can confirm the fix works. Thanks for the quick turnaround

from reliable-discord-client-irc-daemon.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.