immediate

Immediately sends text to the server, verbatim. Skips all queues.

This is used to send messages of types for which there exist no helper functions, and where they must be sent at once.

void
immediate
(,
const string line
,,
const string caller = __FUNCTION__
)

Parameters

state IRCPluginState

The current plugin's IRCPluginState, via which to send messages to the server.

line string

Raw IRC string to send to the server.

properties Message.Property

Custom message properties, such as Message.Property.quiet and Message.Property.forced.

caller string

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

Examples

IRCPluginState state;
state.mainThread = thisTid;

immediate(state, "commands");

receive(
    (Message m)
    {
        with (m.event)
        {
            assert((type == IRCEvent.Type.UNSET), Enum!(IRCEvent.Type).toString(type));
            assert((content == "commands"), content);
            assert(m.properties & Message.Property.immediate);
        }
    }
);

See Also

Meta