mirror of https://github.com/fluffle/goirc
6e87169e2c
Previously, it was possible to add the same handler (as returned by NewHandler) to multiple different event lists, but DelHandler only removed a handler from *all* event lists it was present in. This may not be wanted behaviour, and reduces control over the event lists. Instead, allow both Add and DelHandler to take a variadic list of events to add or delete handlers from. |
||
---|---|---|
.. | ||
registry.go | ||
registry_test.go |