Clear all existing IRC event handler registrations before registering new handlers in case we are connecting via a BNC and are seeing a reconnect. Fixes #1564