IRCPluginImpl.allow

Judges whether an event may be triggered, based on the event itself and the annotated required Permissions of the handler in question. Wrapper function that merely calls kameloso.plugins.common.allowImpl. The point behind it is to make something that can be overridden and still allow it to call the original logic (below).

mixintemplate IRCPluginImpl(Flag!"debug_" debug_ = No.debug_, string module_ = __MODULE__)
private @safe pragma(inline, true) @system
allow

Parameters

event IRCEvent

IRCEvent to allow, or not.

permissionsRequired Permissions

Required Permissions of the handler in question.

Return Value

true if the event should be allowed to trigger, false if not.