Skip to content

Fix kicking IRC users on plumbed rooms when they change their nick#311

Open
jlu5 wants to merge 1 commit intohifi:masterfrom
overdrivenetworks:for-upstream/fix-nick-change-kick
Open

Fix kicking IRC users on plumbed rooms when they change their nick#311
jlu5 wants to merge 1 commit intohifi:masterfrom
overdrivenetworks:for-upstream/fix-nick-change-kick

Conversation

@jlu5
Copy link

@jlu5 jlu5 commented Nov 14, 2025

Heisenbridge translates IRC nick changes to Matrix by kicking the puppet with the old nick and joining a new one with the new nick. However, the IRC user list is not updated before kicking the old puppet; therefore the on_mx_leave handler ends up kicking the IRC user's old nick. Finally, some IRCds allow kicks to track nick changes, so the end result is that the person changing nicks gets kicked from IRC.

on_mx_leave already checks is_on_channel, so the quick fix is to update the on_channel list for each channel to reflect nick changes.

Fixes #279

Heisenbridge translates IRC nick changes to Matrix by kicking the puppet
with the old nick and joining a new one with the new nick. However, the
IRC user list is not updated before kicking the old puppet; therefore
the on_mx_leave handler ends up kicking the IRC user's old nick.
Finally, some IRCds allow kicks to track nick changes, so the end result
is that the person changing nicks gets kicked from IRC.

on_mx_leave already checks is_on_channel, so the quick fix is to update
the on_channel list for each channel to reflect nick changes.
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.

Bug: Kicking users when they change nick

1 participant