Merge pull request #1941 from thelounge/xpaw/fix-log-from

Fix nicknames in text logs
This commit is contained in:
Pavel Djundik 2018-01-05 20:47:30 +02:00 committed by GitHub
commit 52b3ef18f7
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") { 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}) `;