The current plugin's IRCPluginState, via which to send messages to the server.
Nickname of user to which to send the private message.
Message body content to send.
Custom message properties, such as Message.Property.quiet and Message.Property.forced.
String name of the calling function, or something else that gives context.
IRCPluginState state; state.mainThread = thisTid; query(state, "kameloso", "content"); receive( (Message m) { with (m.event) { assert((type == IRCEvent.Type.QUERY), Enum!(IRCEvent.Type).toString(type)); assert((target.nickname == "kameloso"), target.nickname); assert((content == "content"), content); assert((m.properties == Message.Property.init)); } } );
Sends a private query message to a user.