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

monitor support fixes #144

Merged
merged 5 commits into from
Nov 22, 2020
Merged

monitor support fixes #144

merged 5 commits into from
Nov 22, 2020

Conversation

ZeroKnight
Copy link
Contributor

Fixes many issues with Pydle's support for the monitor extension, as detailed in #143.

Summary

  • Support is indicated by RPL_ISUPPORT, not capabilities.
  • monitor and unmonitor methods were made to be coroutines, as they were not before
  • Fixed incorrect assumption that RPL_MON* replies would always return bare nicknames, when in fact the server may return full nick!user@host masks.

Feel free to let me know of anything else you found, or go ahead and push to this branch.

According to current IRCv3 documentation, server support for `monitor`
is indicated in `RPL_ISUPPORT`, and not in capability negotiation.
Per spec, servers are allowed to send a full `nick!user@host` mask
instead of just a nickname in `RPL_MON*` replies.
Copy link
Collaborator

@theunkn0wn1 theunkn0wn1 left a comment

Choose a reason for hiding this comment

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

Looks good overall, spare one minor nitpick.

I will do some manual testing today prior to merge.

Co-authored-by: Joshua Salzedo <thHunkn0WNd@gmail.com>
@theunkn0wn1 theunkn0wn1 merged commit b4a5641 into shizmob:develop Nov 22, 2020
@theunkn0wn1 theunkn0wn1 mentioned this pull request Jun 19, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Sep 30, 2022
https://build.opensuse.org/request/show/1007087
by user mia + RBrownFactory
- Update to version 1.0.0
  Major changes:
  * API change, monitor and unmonitor are now async def functions
    gh#shizmob/pydle#144
  * Drop support for Python < 3.5
    gh#shizmob/pydle#165
  Bug fixes:
  * Fix parsing IRCv3 tags with missing/empty values
    gh#shizmob/pydle#149
  * Fixup irccat.py example
    gh#shizmob/pydle#152
  * WHOIS uses deprecated @asyncio.coroutine
    Backward compatable as the interface did not effectively change
    gh#shizmob/pydle#161
  * Fix Missing Awaits in various files
    Some internal methods were made async. As these methods are
    internal, they are not covered by SEMVER.
    gh#shizmob/pydle#164
  * Add Missing awaits in coroutine calls
    gh#shizmob/pydle#170
  Features:
  * Enable RplWhoisHostSupport implementation
    gh#shizmob/pydle#156
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.

2 participants