Merge pull request #1941 from thelounge/xpaw/fix-log-from
Fix nicknames in text logs
This commit is contained in:
commit
52b3ef18f7
@ -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}) `;
|
||||
|
Loading…
Reference in New Issue
Block a user