-
Notifications
You must be signed in to change notification settings - Fork 55
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
Incorrect multi-prefix handling on WHOIS #431
Comments
Keep in mind what the purpose of the Since WHOIS has sent Also note that WHO will send I think this issue should be closed without any code change. |
It's a bit late for that. The reversion, instead of going back to the old behavior, changed it so WHOIS never uses multiple prefixes, regardless of capabilities or anything else. |
#432 reverted this now and claims that sending all prefixes even if the client hasn't enabled them has 'no known impact on clients that exist today'. I definitely ran into spec compliance walls just like this (albeit not this exact one) when I implemented my own IRC client (bot) from scratch based on the RFC and modern.ircdocs.horse, neither of which allow/document multiple prefixes in RPL_WHOISCHANNELS. I don't think willfully violating the spec is a good idea. But if this is intentional behaviour across independent ircds, it should be documented on modern.ircdocs.horse. |
Please keep in mind that the RFCs are horribly outdated, and often aren't useful for much more than a general idea on how the protocol works. All ircds do many things that don't comply with the RFCs, which is why ircdocs was created. But ircdocs is also a work in progress, so just because it's not documented there doesn't mean it doesn't happen. I opened ircdocs/modern-irc#239 to request that it be updated to reflect that WHOIS may always be multi-prefix. Notably this also happens in oftc-hybrid, so this behavior is not without precedent. |
Prior to #430, Solanum was always returning all prefixes, even if a client had not enabled the
multi-prefix
capability. However, it turned out that the fix there was incorrect due to remote WHOIS not having access to client capabilities, so 746ced2 disabled it altogether and always only returns the highest prefix.The desired behaviour, of course, is to send the highest prefix to clients without
multi-prefix
and all prefixes to those with.The text was updated successfully, but these errors were encountered: