IRCPluginImpl.isEnabled

Introspects the current plugin, looking for a Settings-annotated struct member that has a bool annotated with Enabler, which denotes it as the bool that toggles a plugin on and off.

It then returns its value.

mixintemplate IRCPluginImpl(Flag!"debug_" debug_ = No.debug_, string module_ = __MODULE__)
@safe override const @property pure nothrow @nogc
bool
isEnabled
()

Return Value

Type: bool

true if the plugin is deemed enabled (or cannot be disabled), false if not.

Meta