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

Track User's realname #2383

Merged
merged 3 commits into from
Dec 29, 2022
Merged

Track User's realname #2383

merged 3 commits into from
Dec 29, 2022

Conversation

dgw
Copy link
Member

@dgw dgw commented Dec 3, 2022

Description

I saw a very angry person talking about Sopel somewhere (intentionally vague). Their complaint du jour was that Sopel doesn't expose Users' realnames.

While I chose not to engage them in conversation (some users, you're better off without, as goes the conventional business wisdom), the gap in our API is a valid point and it's not difficult to fix.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
    • My flake8 is still busted 🙁 and the test suite doesn't cover WHO/WHOX handling yet anyway ☹️
  • I have tested the functionality of the things this change touches
    • Automated testing no, but I manually verified (via sopel-ipython console) that realnames were correctly populated from both WHO (on Rizon) and WHOX (on Libera) replies

Notes

I needed to get back to something else and didn't have time to work on tests right now, but still wanted to get the code itself out there for y'all wonderful people to look at. It'd be entirely valid to refuse approval until the test suite covers these functions, and I'd absolutely not take it personally. 😉

Tested live on Rizon (no WHOX, uses 352 RPL_WHOREPLY format) and Libera
(has WHOX, uses 354 RPL_WHOSPCRPL format).

Need to extend the test suite to cover this stuff at some point.
@dgw dgw added the Feature label Dec 3, 2022
@dgw dgw added this to the 8.0.0 milestone Dec 3, 2022
@dgw dgw requested a review from a team December 3, 2022 20:00
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

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

It is good enough for me that the current test suite doesn't break. I'm sure we'll cover WHO/WHOX in future tests. At some point.

@dgw dgw merged commit 9965cce into master Dec 29, 2022
@dgw dgw deleted the who-track-realname branch December 29, 2022 15:32
dgw added a commit that referenced this pull request Dec 29, 2022
Both I and the reviewer missed a bug in #2383 that passed arguments to
`str.join()` wrong. Switched to `str.format()` at another maintainer's
suggestion.

Co-authored-by: SnoopJ <snoopjedi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants