Fix nicknames in text logs

This commit is contained in:
Pavel Djundik 2018-01-05 15:41:03 +02:00 committed by GitHub
parent 628ef7aa66
commit 4307bb0563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,11 +25,11 @@ module.exports.write = function(user, network, chan, msg) {
if (type === "message" || type === "highlight") {
// Format:
// [2014-01-01 00:00:00] <Arnold> Put that cookie down.. Now!!
line += `<${msg.from}> ${msg.text}`;
line += `<${msg.from.nick}> ${msg.text}`;
} else {
// Format:
// [2014-01-01 00:00:00] * Arnold quit
line += `* ${msg.from} `;
line += `* ${msg.from.nick} `;
if (msg.hostmask) {
line += `(${msg.hostmask}) `;