mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-02-17 08:10:18 -05:00
chat: Only sign command args when profile keys defined (#1257)
This commit is contained in:
parent
827b6cdb61
commit
0ac8c087a2
1 changed files with 2 additions and 2 deletions
|
@ -371,7 +371,7 @@ module.exports = function (client, options) {
|
|||
command,
|
||||
timestamp: options.timestamp,
|
||||
salt: options.salt,
|
||||
argumentSignatures: signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements),
|
||||
argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [],
|
||||
messageCount: client._lastSeenMessages.pending,
|
||||
acknowledged
|
||||
})
|
||||
|
@ -381,7 +381,7 @@ module.exports = function (client, options) {
|
|||
command,
|
||||
timestamp: options.timestamp,
|
||||
salt: options.salt,
|
||||
argumentSignatures: signaturesForCommand(command, options.timestamp, options.salt),
|
||||
argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt) : [],
|
||||
signedPreview: options.didPreview,
|
||||
previousMessages: client._lastSeenMessages.map((e) => ({
|
||||
messageSender: e.sender,
|
||||
|
|
Loading…
Reference in a new issue