From 4307bb05635915c5a30a423b951fc8aeb6b2d5ce Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 5 Jan 2018 15:41:03 +0200 Subject: [PATCH] Fix nicknames in text logs --- src/userLog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userLog.js b/src/userLog.js index 7d76b1d7..99299c0a 100644 --- a/src/userLog.js +++ b/src/userLog.js @@ -25,11 +25,11 @@ module.exports.write = function(user, network, chan, msg) { if (type === "message" || type === "highlight") { // Format: // [2014-01-01 00:00:00] 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}) `;