Skip to content

Fix join and part/leave on replay#567

Draft
hloeung wants to merge 3 commits into42wim:masterfrom
hloeung:replay-join-part
Draft

Fix join and part/leave on replay#567
hloeung wants to merge 3 commits into42wim:masterfrom
hloeung:replay-join-part

Conversation

@hloeung
Copy link
Copy Markdown
Collaborator

@hloeung hloeung commented Nov 23, 2023

Without this, on matterircd reconnect & relay, users in channels can be out of sync. This causes issues with trying to auto-complete IRC nicks for example.

@hloeung hloeung force-pushed the replay-join-part branch 3 times, most recently from 6ae4f02 to cfacfdc Compare November 24, 2023 06:45
Without this, on matterircd reconnect & relay, users in channels can
be out of sync. This causes issues with trying to auto-complete IRC
nicks for example.
@hloeung hloeung marked this pull request as ready for review November 24, 2023 07:30
@hloeung hloeung requested a review from 42wim November 24, 2023 07:30
@hloeung hloeung marked this pull request as draft December 11, 2023 07:21
@hloeung hloeung marked this pull request as ready for review February 16, 2024 08:38
@kot0dama
Copy link
Copy Markdown

kot0dama commented Jun 6, 2024

Seems this will cause BIP IRC Proxy to crash, as in some cases, bip will try to add an already existing user to a channel user list it already had when receiving a JOIN, or remove a nonexistent user from a list when receiving a PART.

I believe a server should only send PART / JOIN when it has sent a channel user list without the related change (like with NAMES or WHO commands). I'm not sure that's required per the RFC but I would expect the RFC to be strict about sending PART and JOIN messages when the result of such action is already visible in NAMES or WHO.

I think this happened when I (or someone else) was forcefully added to a channel, bip received the full user list, and then a JOIN command.

@hloeung hloeung marked this pull request as draft June 6, 2024 21:37
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