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

Clear existing IRC event handlers before connecting to new ones #2138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bd808
Copy link
Contributor

@bd808 bd808 commented Apr 27, 2024

Clear IRC event handlers that we will be registering for the new connection before registering new handlers. This prevents duplicate event handlers in the case where we are connecting via a BNC and are seeing a reconnect. Attempting to clear handlers when none have been set is a no-op.

Fixes #1564
Co-authored-by: Andreas Vögele [email protected]

Clear IRC event handlers that we will be registering for the new
connection before registering new handlers. This prevents duplicate
event handlers in the case where we are connecting via a BNC and are
seeing a reconnect. Attempting to clear handlers when none have been set
is a no-op.

Fixes 42wim#1564
Co-authored-by: Andreas Vögele <[email protected]>
Copy link

codeclimate bot commented Apr 27, 2024

Code Climate has analyzed commit 59a09e1 and detected 0 issues on this pull request.

View more on Code Climate.

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.

Duplicate messages when bridging IRC/ZNC to Telegram after some days
1 participant