whois

Queries the server for WHOIS information about a user.

void
whois
(,
const string nickname
,,
const string caller = __FUNCTION__
)

Parameters

state IRCPluginState

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

nickname string

String nickname to query for.

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;

enum properties = Message.Property.forced;
whois(state, "kameloso", properties);

immutable m = state.outgoingMessages.data[0];
with (m.event)
{
    assert((type == IRCEvent.Type.RPL_WHOISACCOUNT), Enum!(IRCEvent.Type).toString(type));
    assert((target.nickname == "kameloso"), target.nickname);
    assert(m.properties & Message.Property.forced);
}