formatMessageColoured

Formats an IRCEvent into an output range sink, coloured.

It formats the timestamp, the type of the event, the sender or the sender's display name, the channel or target, the content body, as well as auxiliary information and numbers.

version(WithPrinterPlugin && Colours)
package @safe
void
formatMessageColoured
(
Sink
)
(,
auto ref Sink sink
,
const ref IRCEvent event
,
const Flag!"bellOnMention" bellOnMention
,
const Flag!"bellOnError" bellOnError
)
if (
isOutputRange!(Sink, char[])
)

Parameters

plugin PrinterPlugin

Current PrinterPlugin.

sink Sink

Output range to format the IRCEvent into.

event IRCEvent

The IRCEvent that is to be formatted.

bellOnMention Flag!"bellOnMention"

Whether or not to emit a terminal bell when the bot's nickname is mentioned in chat.

bellOnError Flag!"bellOnError"

Whether or not to emit a terminal bell when an error occurred.

Meta