WHOISFiberDelegate.enqueueAndWHOIS

Constructs a CarryingFiber carrying a IRCEvent and enqueues it into the IRCPluginState.awaitingFibers

associative array, then issues a WHOIS query (unless overridden via the issueWhois parameter).

mixintemplate WHOISFiberDelegate(alias onSuccess, alias onFailure = null, Flag!"alwaysLookup" alwaysLookup = No.alwaysLookup)
void
enqueueAndWHOIS
(
const string nickname
,
const bool issueWhois = true
,
const bool background = false
)

Parameters

nickname string

Nickname of the user the enqueueing event relates to.

issueWhois bool

Whether to actually issue WHOIS queries at all or just enqueue.

background bool

Whether or not to issue queries as low-priority background messages.

Throws

Exception if a success of failure function was to trigger in an impossible scenario, such as on WHOIS results on Twitch.