filterSender

Decides if a sender meets a Permissions and is allowed to trigger an event handler, or if a WHOIS query is needed to be able to tell.

This requires the Persistence service to be active to work.

@safe
filterSender
(
bool verbose = false
)

Parameters

verbose

Whether or not to output verbose debug information to the local terminal.

event IRCEvent

IRCEvent to filter.

permissionsRequired Permissions

The Permissions context in which this user should be filtered.

preferHostmasks bool

Whether to rely on hostmasks for user identification, or to use services account logins, which need to be issued WHOIS queries to divine.

Return Value

Type: auto

A FilterResult saying the event should pass, fail, or that more information about the sender is needed via a WHOIS call.

Also See

filterSenderImpl