onPRIVMSG

Handle QUERY and CHAN messages (PRIVMSG).

Whether or not it is a private query message or a channel message is only obvious by looking at the target field of it; if it starts with a #, it is a channel message.

Also handle ACTION events (/me slaps foo with a large trout), and change the type to CTCP_-types if applicable.

private pure @safe
void
onPRIVMSG
(
const ref IRCParser parser
,,
ref string slice
)

Parameters

parser IRCParser

Reference to the current IRCParser.

event IRCEvent

Reference to the IRCEvent to continue working on.

slice string

Reference to the slice of the raw IRC string.

Throws

IRCParseException on unknown CTCP types.