replay

Convenience function that returns a kameloso.plugins.common.core.Replay of the right type, *with* a subclass plugin reference attached.

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

Parameters

plugin Plugin

Subclass IRCPlugin to call the function pointer fun with as first argument, when the WHOIS results return.

event IRCEvent

IRCEvent that instigated the WHOIS lookup.

fun Fun

Function/delegate pointer to call upon receiving the results.

permissionsRequired Permissions

The permissions level policy to apply to the WHOIS results.

inFiber bool

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

caller string

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

Return Value

Type: auto

A Replay with template parameters inferred from the arguments passed to this function.

See Also

Meta