PluginRegistration

Mixes in a module constructor that registers the supplied IRCPlugin subclass to be instantiated on program startup/connect.

mixin template PluginRegistration (
Plugin
Priority priority = 0.priority
string module_ = __MODULE__
)

Parameters

Plugin

Plugin class of module.

priority

Priority at which to instantiate the plugin. A lower priority makes it get instantiated before other plugins. Defaults to 0.priority.

module_

String name of the module. Only used in case an error message is needed.

Meta