Spacing [7]

This commit is contained in:
7cc5c4f330d47060 2024-08-04 03:23:57 -04:00
parent 68fe0d0cd4
commit 3f93683854
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:ACESPPwnsy88x7h9TZQ44QamQIRO9ngTeusTB6Kg9cY

View file

@ -61,6 +61,7 @@ module.exports = {
}) })
} }
}) })
b._client.on('system_chat', (data) => { b._client.on('system_chat', (data) => {
const json = parse1204(data.content) const json = parse1204(data.content)
const parsed = parsePlain(json) const parsed = parsePlain(json)
@ -70,6 +71,7 @@ module.exports = {
const uuid = b.findUUID(username) const uuid = b.findUUID(username)
b.emit('chat', { json, type: 'system', uuid, message: split.join(': '), username }) b.emit('chat', { json, type: 'system', uuid, message: split.join(': '), username })
}) })
b._client.on('chat', (data) => { // Legacy chat b._client.on('chat', (data) => { // Legacy chat
const json = parse1204(data.message) const json = parse1204(data.message)
const parsed = parsePlain(json) const parsed = parsePlain(json)
@ -92,6 +94,7 @@ module.exports = {
} }
b.emit('chat', { json, type: 'legacy', uuid: data.uuid ? data.uuid : uuid, message, username }) b.emit('chat', { json, type: 'legacy', uuid: data.uuid ? data.uuid : uuid, message, username })
}) })
b.on('chat', (data) => { b.on('chat', (data) => {
const msgConsole = parseConsole(data.json) const msgConsole = parseConsole(data.json)
const msgPlain = parsePlain(data.json) const msgPlain = parsePlain(data.json)