raw

Sends text to the server, verbatim.

This is used to send messages of types for which there exist no helper functions.

void
raw
(,
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;

raw(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.init);
        }
    }
);

See Also

Meta