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") {
// 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}) `;