enqueue

Construct and enqueue a function replay in the plugin's queue of such.

The main loop will catch up on it and issue WHOIS queries as necessary, then replay the event upon receiving the results.

void
enqueue
(
Plugin
Fun
)
(
Plugin plugin
,
const ref IRCEvent event
,,
const bool inFiber
,
Fun fun
,
const string caller = __FUNCTION__
)

Parameters

plugin Plugin

Subclass IRCPlugin to replay the function pointer fun with as first argument.

event IRCEvent

IRCEvent to queue up to replay.

permissionsRequired Permissions

Permissions level to match the results from the WHOIS query with.

inFiber bool

Whether or not the function should be called from within a Fiber.

fun Fun

Function/delegate pointer to call when the results return.

caller string

String name of the calling function, or something else that gives context.

Meta