allowImpl

Judges whether an event may be triggered, based on the event itself and the annotated Permissions of the handler in question. Implementation function.

@safe
allowImpl
(
bool verbose = false
)

Parameters

plugin IRCPlugin

The IRCPlugin this relates to.

event IRCEvent

IRCEvent to allow, or not.

permissionsRequired Permissions

Required Permissions of the handler in question.

Return Value

Type: auto

FilterResult.pass if the event should be allowed to trigger, FilterResult.whois if not.

See Also