mirror of
https://github.com/42wim/matterbridge.git
synced 2025-02-13 20:10:54 +01:00
![Bryan Davis](/assets/img/avatar_default.png)
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 <andreas@andreasvoegele.com>