Executed standard --fix

This commit is contained in:
lluiscab 2018-08-27 12:44:20 +02:00
parent a563893a62
commit 9a9eaedaf5

View file

@ -26,7 +26,7 @@ client.on('chat', function (packet) {
if (jsonMsg.translate === 'chat.type.announcement' || jsonMsg.translate === 'chat.type.text') {
const username = jsonMsg.with[0].text
const msg = jsonMsg.with[1]
if (username === client.username) return;
if (username === client.username) return
if (msg.text) client.write('chat', {message: msg.text})
else client.write('chat', {message: msg})
}