Open
Description
thoj/ircevent (which we forked from) allowed passing *
as the command name to AddCallback
, in which case the callback would apply to all events. I removed this when I forked because I didn't see a clear use case at the time.
Possibilities:
- Restore some version of star callbacks. (In the case where a common handler is used for all commands, with internal logic for reading
(*ircmsg.Message).Command
, this DRY's the enumeration of the possible commands betweenAddHandler
and the handler itself.) - Add a separate callback handler that takes the raw IRC bytes from the wire, rather than a parsed message (e.g. for implementing a raw traffic log)
Metadata
Metadata
Assignees
Labels
No labels