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 Flag!"issueWhois" issueWhois = Yes.issueWhois
,
const Flag!"background" background = No.background
)
if (
isSomeFunction!onSuccess &&
(
is(typeof(onFailure) == typeof(null)) ||
isSomeFunction!onFailure
)
)

Parameters

nickname string

Nickname of the user the enqueueing event relates to.

issueWhois Flag!"issueWhois"

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

background Flag!"background"

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.

Meta