Closed cooper closed 7 years ago
this could be implemented using an event. a mode module may provide a default callback, which stringifies the parameter for rfc2812. other protocol callbacks will be called before the default one and stop the event propagation.
it should be possible to store mode parameters internally in an arbitrary format. formatters may be used to convert them to protocol-specific stringified forms suitable for transfer. parsers may be used to convert their stringified forms to the arbitrary format used internally.