>log-line ( object -- line )


Vocabulary
irc.logbot.log-line

Inputs
objectan object


Outputs
linean object


Definition


Methods




M: ctcp >log-line
[ "CTCP: " % dup sender>> % " " % text>> % ] "" make ;






M: join >log-line
[
[ "* " % sender>> % ]
[ prefix>> prefix% " has joined the channel." % ] bi
] "" make ;



M: kick >log-line
[
{
[ "* " % sender>> % ]
[ " has kicked " % user>> % ]
[ " from the channel" % comment>> dot-or-parens % ]
} cleave
] "" make ;



M: nick >log-line
[ "* " % dup sender>> % " is now known as " % nickname>> % ]
"" make ;



M: part >log-line
[
[ "* " % sender>> % ]
[ prefix>> prefix% " has left the channel" % ]
[ comment>> dot-or-parens % ] tri
] "" make ;



M: participant-mode >log-line
[
{
[ "* " % sender>> % ]
[ " has set mode " % mode>> % ]
[ " to " % parameter>> % ]
} cleave
] "" make ;









M: topic >log-line
[
"* " % dup sender>> % " has set the topic for " %
dup channel>> % ": \"" % topic>> % "\"" %
] "" make ;