display correct username

This commit is contained in:
Iuri Matias 2018-11-07 05:36:10 -05:00
parent 0ff6c3f68d
commit 9d60c6304d
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ status.joinChat(DEFAULT_CHANNEL, () => {
ui.availableChannels(channels); ui.availableChannels(channels);
status.onMessage(DEFAULT_CHANNEL, (err, data) => { status.onMessage(DEFAULT_CHANNEL, (err, data) => {
let msg = JSON.parse(data)[1][0]; let msg = JSON.parse(data.payload)[1][0];
ui.logEntry(("someone> ").green.underline + msg); ui.logEntry((data.username + ">").green + " " + msg);
}); });
}); });