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(Colours)
void
formatMessageColoured
(
Sink
)
(
PrinterPlugin plugin
,
auto ref Sink sink
,
const ref IRCEvent event
,
const bool bellOnMention
,
const bool bellOnError
)

Parameters

plugin PrinterPlugin

Current PrinterPlugin.

sink Sink

Output range to format the IRCEvent into.

event IRCEvent

The IRCEvent that is to be formatted.

bellOnMention bool

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

bellOnError bool

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