jaraco / irc

Full-featured Python IRC library for Python.
MIT License
390 stars 84 forks source link

Implement default handler if nothing matches #185

Open hifi opened 3 years ago

hifi commented 3 years ago

There's an undocumented(?) event handler named all_events but I'd also like to have a catch-all for unhandled events called unhandled_event or something so handlers can be registered at reactor level directly where they exist and others fall through to a catch-all.

I'm now at a point I either need to refactor my project completely to use a custom event handler based on all_events or get an upstream solution as there's too many non-standard reply codes to catch all of them manually.

Would this be doable?

Thanks.

jaraco commented 3 years ago

That sounds doable. Feel free to explore the event handler space and see if you can propose a viable solution. The simpler, the better.