From 9d60c6304d006d539cd64972ed93154b602c203e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 7 Nov 2018 05:36:10 -0500 Subject: [PATCH] display correct username --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index f523cc6..565e652 100644 --- a/src/index.js +++ b/src/index.js @@ -33,8 +33,8 @@ status.joinChat(DEFAULT_CHANNEL, () => { ui.availableChannels(channels); status.onMessage(DEFAULT_CHANNEL, (err, data) => { - let msg = JSON.parse(data)[1][0]; - ui.logEntry(("someone> ").green.underline + msg); + let msg = JSON.parse(data.payload)[1][0]; + ui.logEntry((data.username + ">").green + " " + msg); }); });