The arguments after the CTCP command, if this is a CTCP message.
The CTCP command, if this is a CTCP message.
Whether or not the message was a CTCP message.
Whether or not the message is safe to reply to.
Whether or not the message was the result of the server echoing back our messages.
This message's payload. Will include \x01 characters if the message is CTCP.
Type of message.
{ auto msg = Message("Hello!", MessageType.notice); assert(!msg.isCTCP); assert(!msg.isReplyable); } { auto msg = Message("Hello!", MessageType.privmsg); assert(msg.isReplyable); } { auto msg = Message("\x01ACTION does a thing\x01", MessageType.privmsg); assert(msg.isCTCP); assert(msg.ctcpCommand == "ACTION"); assert(msg.ctcpArgs == "does a thing"); } { auto msg = Message("\x01VERSION\x01", MessageType.privmsg); assert(msg.isCTCP); assert(msg.ctcpCommand == "VERSION"); assert(msg.ctcpArgs == ""); }
An IRC message, passed between clients.