Fix nicknames in text logs
This commit is contained in:
parent
628ef7aa66
commit
4307bb0563
@ -25,11 +25,11 @@ module.exports.write = function(user, network, chan, msg) {
|
|||||||
if (type === "message" || type === "highlight") {
|
if (type === "message" || type === "highlight") {
|
||||||
// Format:
|
// Format:
|
||||||
// [2014-01-01 00:00:00] <Arnold> Put that cookie down.. Now!!
|
// [2014-01-01 00:00:00] <Arnold> Put that cookie down.. Now!!
|
||||||
line += `<${msg.from}> ${msg.text}`;
|
line += `<${msg.from.nick}> ${msg.text}`;
|
||||||
} else {
|
} else {
|
||||||
// Format:
|
// Format:
|
||||||
// [2014-01-01 00:00:00] * Arnold quit
|
// [2014-01-01 00:00:00] * Arnold quit
|
||||||
line += `* ${msg.from} `;
|
line += `* ${msg.from.nick} `;
|
||||||
|
|
||||||
if (msg.hostmask) {
|
if (msg.hostmask) {
|
||||||
line += `(${msg.hostmask}) `;
|
line += `(${msg.hostmask}) `;
|
||||||
|
Loading…
Reference in New Issue
Block a user